Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Mac Catalyst in CI, and clean up unnecessary iOS env flags #681

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading