Skip to content

Commit 7005484

Browse files
authored
Add aarch64-apple-darwin CI (#996)
1 parent f44444e commit 7005484

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191

9292
# macOS targets
9393
#- x86_64-apple-darwin
94+
- aarch64-apple-darwin
9495
# FIXME: gh-actions build environment doesn't have linker support
9596
# - i686-apple-darwin
9697

@@ -132,6 +133,9 @@ jobs:
132133
os: ubuntu-latest
133134
#- target: wasm32-wasi
134135
# os: ubuntu-latest
136+
- target: aarch64-apple-darwin
137+
os: macos-latest
138+
norun: true
135139
- target: aarch64-unknown-linux-gnu
136140
os: ubuntu-latest
137141
# Temporarily disabled because otool crashes with "Out of memory", seems Github CI issue
@@ -184,6 +188,12 @@ jobs:
184188
rustup default nightly
185189
rustup target add ${{ matrix.target }}
186190
if: "!endsWith(matrix.target, 'emulated')"
191+
- name: Setup (aarch64-apple-darwin)
192+
run: |
193+
sudo xcode-select -s /Applications/Xcode_12.2.app/
194+
echo "SDKROOT=$(xcrun -sdk macosx11.0 --show-sdk-path)" >> $GITHUB_ENV
195+
echo "MACOS_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.0 --show-sdk-platform-version)" >> $GITHUB_ENV
196+
if: matrix.target == 'aarch64-apple-darwin'
187197
- run: cargo generate-lockfile
188198

189199
# Configure some env vars based on matrix configuration

0 commit comments

Comments
 (0)