Skip to content

Commit

Permalink
Add aarch64-apple-darwin to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Oct 15, 2020
1 parent 8338b33 commit 6d2f6ed
Show file tree
Hide file tree
Showing 2 changed files with 11 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
7 changes: 7 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
target=$1
set -ex

if [ "$1" = "aarch64-apple-darwin" ] ; then
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)
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 6d2f6ed

Please sign in to comment.