Skip to content

Commit a9c4658

Browse files
authored
Test Mac Catalyst in CI, and clean up unnecessary iOS env flags (#681)
rustc will figure out the SDK itself nowadays, so calling xcrun is unnecessary.
1 parent 27be6fc commit a9c4658

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,17 @@ jobs:
162162
matrix:
163163
include:
164164
- target: aarch64-apple-ios
165-
sdk: iphoneos
166165
- target: x86_64-apple-ios
167-
sdk: iphonesimulator
166+
- target: aarch64-apple-ios-macabi
168167
steps:
169168
- uses: actions/checkout@v4
170169
with:
171170
submodules: true
172171
- run: rustup target add ${{ matrix.target }}
173-
- run: |
174-
export RUSTFLAGS=-Dwarnings
175-
export SDK_PATH=`xcrun --show-sdk-path --sdk ${{ matrix.sdk }}`
176-
export RUSTFLAGS="-C link-arg=-isysroot -C link-arg=$SDK_PATH"
177-
cargo test --no-run --target ${{ matrix.target }}
178-
name: Build tests
172+
- name: Run tests
173+
run: cargo test ${{ contains(matrix.target, 'macabi') && '' || '--no-run' }} --target ${{ matrix.target }}
174+
env:
175+
RUSTFLAGS: -Dwarnings
179176

180177
docker:
181178
name: Docker

0 commit comments

Comments
 (0)