Skip to content

Commit

Permalink
Specify Rust target for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Aug 17, 2024
1 parent 8b17243 commit db077f0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ios-rust-ffi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -46,12 +49,13 @@ jobs:
with:
toolchain: stable
target: ${{ matrix.target }}
default: true

- name: Clippy check
shell: bash
env:
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 }}

0 comments on commit db077f0

Please sign in to comment.