Skip to content

Commit

Permalink
Run tests on actual M1 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdawson committed Mar 14, 2024
1 parent ed639a5 commit 049b306
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,22 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
test-macos-intel:
runs-on: macos-latest
test-macos-x86_64:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build-macos-arm:
runs-on: macos-latest
env:
WORKFLOW_TARGET_MACOS_SDK: macosx11.1
test-macos-aarch64:
runs-on: macos-14 # https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/
steps:
- uses: actions/checkout@v2
- name: List SDKs
run: xcodebuild -showsdks
- name: Install target toolchain
run: rustup target add aarch64-apple-darwin
- name: Build
run: |
SDKROOT="$(xcrun -sdk ${{ env.WORKFLOW_TARGET_MACOS_SDK }} --show-sdk-path)" \
MACOSX_DEPLOYMENT_TARGET="$(xcrun -sdk ${{ env.WORKFLOW_TARGET_MACOS_SDK }} --show-sdk-platform-version)" \
cargo build --verbose --target=aarch64-apple-darwin
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
test-windows:
runs-on: windows-latest
steps:
Expand Down

0 comments on commit 049b306

Please sign in to comment.