Skip to content

Commit

Permalink
Test Mac Catalyst in CI, and clean up unnecessary iOS env flags (#681)
Browse files Browse the repository at this point in the history
rustc will figure out the SDK itself nowadays, so calling xcrun is
unnecessary.
  • Loading branch information
madsmtm authored Jan 3, 2025
1 parent 27be6fc commit a9c4658
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,17 @@ jobs:
matrix:
include:
- target: aarch64-apple-ios
sdk: iphoneos
- target: x86_64-apple-ios
sdk: iphonesimulator
- target: aarch64-apple-ios-macabi
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: rustup target add ${{ matrix.target }}
- run: |
export RUSTFLAGS=-Dwarnings
export SDK_PATH=`xcrun --show-sdk-path --sdk ${{ matrix.sdk }}`
export RUSTFLAGS="-C link-arg=-isysroot -C link-arg=$SDK_PATH"
cargo test --no-run --target ${{ matrix.target }}
name: Build tests
- name: Run tests
run: cargo test ${{ contains(matrix.target, 'macabi') && '' || '--no-run' }} --target ${{ matrix.target }}
env:
RUSTFLAGS: -Dwarnings

docker:
name: Docker
Expand Down

0 comments on commit a9c4658

Please sign in to comment.