diff --git a/.github/workflows/ios-rust-ffi.yml b/.github/workflows/ios-rust-ffi.yml index cc41fea3a524..77454cd23b7c 100644 --- a/.github/workflows/ios-rust-ffi.yml +++ b/.github/workflows/ios-rust-ffi.yml @@ -3,7 +3,7 @@ name: iOS - Build and test Rust FFI (mullvad-ios) on: pull_request: paths: - - .github/workflows/clippy.yml + - .github/workflows/ios-rust-ffi.yml - clippy.toml - '**/*.rs' workflow_dispatch: @@ -22,14 +22,17 @@ jobs: with: toolchain: stable target: ${{ matrix.target }} + default: true - name: Build and test crates shell: bash env: RUSTFLAGS: --deny warnings + # NOTE: Tests actually target macOS here. This is because we do not have an iOS runner + # handy. run: | source env.sh - time cargo build --locked --verbose --lib -p mullvad-ios + time cargo build --locked --verbose --lib -p mullvad-ios --target ${{ matrix.target }} time cargo test --locked --verbose --lib -p mullvad-ios clippy-check-ios: @@ -46,6 +49,7 @@ jobs: with: toolchain: stable target: ${{ matrix.target }} + default: true - name: Clippy check shell: bash @@ -53,5 +57,5 @@ jobs: RUSTFLAGS: --deny warnings run: | source env.sh - time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios - time cargo clippy --locked --all-targets --all-features -p mullvad-ios + time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios --target ${{ matrix.target }} + time cargo clippy --locked --all-targets --all-features -p mullvad-ios --target ${{ matrix.target }}