Skip to content

Commit

Permalink
Use macos-14 runners (#1095)
Browse files Browse the repository at this point in the history
Now that `macos-14` runners are available broadly, we can use those to
get the must faster M1 based builds and actually test on arm64 Mac in
CI.

See https://github.com/microsoft/qsharp/actions/runs/7721944262 for
successful CI run that includes macOS.
  • Loading branch information
swernli authored Jan 31, 2024
1 parent 41d073b commit 4a88da0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ jobs:
name: Build and test
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-latest, macos-14]
is_pr:
- ${{ github.event_name == 'pull_request' }}
exclude:
- os: macos-latest
- os: macos-14
is_pr: true

runs-on: ${{matrix.os}}
Expand All @@ -94,8 +94,8 @@ jobs:
components: ${{ env.RUST_TOOLCHAIN_COMPONENTS }}
- name: Add additional Rust targets
run: |
rustup target add aarch64-apple-darwin
if: matrix.os == 'macos-latest'
rustup target add x86_64-apple-darwin
if: matrix.os == 'macos-14'
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand All @@ -113,11 +113,11 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-latest, macos-14]
is_pr:
- ${{ github.event_name == 'pull_request' }}
exclude:
- os: macos-latest
- os: macos-14
is_pr: true

runs-on: ${{matrix.os}}
Expand All @@ -133,8 +133,8 @@ jobs:
components: ${{ env.RUST_TOOLCHAIN_COMPONENTS }}
- name: Add additional Rust targets
run: |
rustup target add aarch64-apple-darwin
if: matrix.os == 'macos-latest'
rustup target add x86_64-apple-darwin
if: matrix.os == 'macos-14'
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand Down

0 comments on commit 4a88da0

Please sign in to comment.