Skip to content

Commit eca9ed6

Browse files
committed
CI run cargo check for iOS target
1 parent 4fad447 commit eca9ed6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,35 @@ jobs:
8080
- name: Run clippy nightly for benches
8181
run: cargo +nightly clippy --all-features --benches
8282

83+
check:
84+
strategy:
85+
fail-fast: false
86+
matrix:
87+
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
88+
target: ['', 'x86_64-apple-ios']
89+
runs-on: ${{ matrix.os }}
90+
defaults:
91+
run:
92+
shell: bash
93+
steps:
94+
- name: Checkout repository
95+
uses: actions/checkout@v2
96+
- name: Install dependencies
97+
if: matrix.os == 'ubuntu-latest'
98+
run: sudo bash ./.github/workflows/install-deps.sh
99+
- name: Install Rust target
100+
if: matrix.target != ''
101+
run: rustup target add ${{ matrix.target }}
102+
- name: Restore cargo caches
103+
uses: Swatinem/rust-cache@v1
104+
- name: Run check
105+
run: |
106+
if [[ -z "${{ matrix.target }}" ]]; then
107+
cargo check --all-features
108+
else
109+
cargo check --all-features --target ${{ matrix.target }}
110+
fi
111+
83112
check-doc:
84113
strategy:
85114
fail-fast: false

0 commit comments

Comments
 (0)