Skip to content

Commit 1bf89dc

Browse files
committed
Add aarch64-apple-darwin to CI
1 parent 8338b33 commit 1bf89dc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ jobs:
4343
target: x86_64-apple-darwin
4444
rust: stable
4545
os: macos-latest
46+
- thing: macos-aarch64
47+
target: aarch64-apple-darwin
48+
rust: nightly
49+
os: macos-latest
4650
- thing: arm-android
4751
target: arm-linux-androideabi
4852
rust: stable

ci/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
target=$1
22
set -ex
3+
4+
if [ "$1" = "aarch64-apple-darwin" ] ; then
5+
sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer/
6+
export SDKROOT=$(xcrun -sdk macosx11.0 --show-sdk-path)
7+
export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.0 --show-sdk-platform-version)
8+
export CARGO_TARGET_AARCH64_APPLE_DARWIN_RUNNER=echo
9+
fi
10+
311
cargo test --manifest-path testcrate/Cargo.toml --target $1 -vv
412
cargo test --manifest-path testcrate/Cargo.toml --target $1 -vv --release
513
if [ "$1" = "x86_64-unknown-linux-gnu" ] ; then

0 commit comments

Comments
 (0)