Skip to content

Commit

Permalink
Add aarch64-apple-darwin to CI (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster authored Oct 16, 2020
1 parent 8338b33 commit 6d9bf2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
target: x86_64-apple-darwin
rust: stable
os: macos-latest
- thing: macos-aarch64
target: aarch64-apple-darwin
rust: nightly
os: macos-latest
- thing: arm-android
target: arm-linux-androideabi
rust: stable
Expand Down
8 changes: 8 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
target=$1
set -ex

if [ "$1" = "aarch64-apple-darwin" ] ; then
sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer/
export SDKROOT=$(xcrun -sdk macosx11.0 --show-sdk-path)
export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.0 --show-sdk-platform-version)
export CARGO_TARGET_AARCH64_APPLE_DARWIN_RUNNER=echo
fi

cargo test --manifest-path testcrate/Cargo.toml --target $1 -vv
cargo test --manifest-path testcrate/Cargo.toml --target $1 -vv --release
if [ "$1" = "x86_64-unknown-linux-gnu" ] ; then
Expand Down

0 comments on commit 6d9bf2c

Please sign in to comment.