Skip to content

Commit 7edf862

Browse files
authored
Ensure aarch64-apple-darwin can be built (#170)
* Ensure aarch64-apple-darwin can be built * Remove unneeded xcode workaround
1 parent d1cad96 commit 7edf862

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/rust-ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ jobs:
4646
run: cargo build --tests --release
4747
- name: cargo test
4848
run: cargo test --release
49+
50+
build-aarch64-apple-darwin:
51+
name: Build aarch64-apple-darwin
52+
strategy:
53+
matrix:
54+
os: [macOS-latest]
55+
runs-on: ${{ matrix.os }}
56+
steps:
57+
- uses: actions/checkout@v2
58+
- uses: actions-rs/toolchain@v1
59+
with:
60+
toolchain: stable
61+
override: true
62+
- run: rustup target add aarch64-apple-darwin
63+
- run: cargo fetch --target aarch64-apple-darwin
64+
- run: cargo build --release --target aarch64-apple-darwin
4965

5066
deny-check:
5167
name: cargo-deny
@@ -118,12 +134,6 @@ jobs:
118134
if: matrix.os == 'ubuntu-20.04'
119135
run: |
120136
sudo apt-get install -y musl-tools
121-
- name: Workaround xcode shenanigans
122-
if: matrix.target == 'aarch64-apple-darwin'
123-
# https://github.com/actions/virtual-environments/issues/2557#issuecomment-769611326
124-
run: |
125-
sudo xcode-select -s "/Applications/Xcode_12.3.app"
126-
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
127137
- name: Checkout
128138
uses: actions/checkout@v2
129139
- name: cargo fetch

0 commit comments

Comments
 (0)