-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
name: iOS - Build and test Rust FFI (mullvad-ios) | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/clippy.yml | ||
- clippy.toml | ||
- '**/*.rs' | ||
workflow_dispatch: | ||
jobs: | ||
build-ios: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
target: [aarch64-apple-ios, aarch64-apple-ios-sim] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.target }} | ||
|
||
- name: Build and test crates | ||
shell: bash | ||
env: | ||
RUSTFLAGS: --deny warnings | ||
run: | | ||
source env.sh | ||
time cargo build --locked --verbose --lib -p mullvad-ios | ||
time cargo test --locked --verbose --lib -p mullvad-ios | ||
clippy-check-ios: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
target: [aarch64-apple-ios, aarch64-apple-ios-sim] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.target }} | ||
|
||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters