From 6d9bf2c7317b0b955ecb2a89ea5a57288f0f27dd Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Fri, 16 Oct 2020 10:59:52 -0400 Subject: [PATCH] Add aarch64-apple-darwin to CI (#77) --- .github/workflows/main.yml | 4 ++++ ci/run.sh | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d07567c0..6006dc46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/ci/run.sh b/ci/run.sh index 50f213b8..f71a802e 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -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