Skip to content

Commit

Permalink
Test Mac Catalyst in CI, and clean up unnecessary iOS env flags
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 committed Nov 20, 2024
1 parent 26ab4af commit 6502139
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 @@ -168,20 +168,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 ${{ matrix.target.contains('macabi') && '' || '--no-run' }} --target ${{ matrix.target }}
env:
RUSTFLAGS: -Dwarnings

docker:
name: Docker
Expand Down

0 comments on commit 6502139

Please sign in to comment.