Skip to content

Commit db077f0

Browse files
committed
Specify Rust target for iOS
1 parent 8b17243 commit db077f0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ios-rust-ffi.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: iOS - Build and test Rust FFI (mullvad-ios)
33
on:
44
pull_request:
55
paths:
6-
- .github/workflows/clippy.yml
6+
- .github/workflows/ios-rust-ffi.yml
77
- clippy.toml
88
- '**/*.rs'
99
workflow_dispatch:
@@ -22,14 +22,17 @@ jobs:
2222
with:
2323
toolchain: stable
2424
target: ${{ matrix.target }}
25+
default: true
2526

2627
- name: Build and test crates
2728
shell: bash
2829
env:
2930
RUSTFLAGS: --deny warnings
31+
# NOTE: Tests actually target macOS here. This is because we do not have an iOS runner
32+
# handy.
3033
run: |
3134
source env.sh
32-
time cargo build --locked --verbose --lib -p mullvad-ios
35+
time cargo build --locked --verbose --lib -p mullvad-ios --target ${{ matrix.target }}
3336
time cargo test --locked --verbose --lib -p mullvad-ios
3437
3538
clippy-check-ios:
@@ -46,12 +49,13 @@ jobs:
4649
with:
4750
toolchain: stable
4851
target: ${{ matrix.target }}
52+
default: true
4953

5054
- name: Clippy check
5155
shell: bash
5256
env:
5357
RUSTFLAGS: --deny warnings
5458
run: |
5559
source env.sh
56-
time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios
57-
time cargo clippy --locked --all-targets --all-features -p mullvad-ios
60+
time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios --target ${{ matrix.target }}
61+
time cargo clippy --locked --all-targets --all-features -p mullvad-ios --target ${{ matrix.target }}

0 commit comments

Comments
 (0)