Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM macOS target to CI #382

Merged
merged 5 commits into from
Mar 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
# - Linux sparc64

# macOS
- macOS aarch64
- macOS x86_64

# iOS
Expand Down Expand Up @@ -466,6 +467,15 @@ jobs:
# tests: skip

# macOS
- label: macOS aarch64
target: aarch64-apple-darwin
os: macOS-latest
cross: skip
tests: skip
install_target: true
# FIXME: Switch OS to ARM macOS once GitHub Actions provides that,
# use the toolchain instead of the target and run the tests.

- label: macOS x86_64
target: x86_64-apple-darwin
os: macOS-latest
Expand Down Expand Up @@ -604,6 +614,13 @@ jobs:
run: sh .github/workflows/install.sh
env:
OS_NAME: ${{ matrix.os }}
TARGET: ${{ matrix.target }}

- name: Select XCode to use
if: matrix.target == 'aarch64-apple-darwin'
run: |
sudo xcode-select -s "/Applications/Xcode_12.3.app"
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*

- name: Build Static Library
run: sh .github/workflows/build_static.sh
Expand Down