Skip to content

Commit

Permalink
ci: run cargo/cross test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Jan 29, 2024
1 parent c311da1 commit 093b8c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ jobs:
if: matrix.use_cross == true
run: curl -fL --retry 3 https://github.com/cross-rs/cross/releases/download/v${{ env.CROSS_VER }}/cross-x86_64-unknown-linux-musl.tar.gz | tar vxz -C /usr/local/bin

- name: Run cargo check
- name: Run cargo/cross check
run: ${{ matrix.use_cross == true && 'cross' || 'cargo' }} check --locked --target ${{ matrix.target }}

- name: Run cargo clippy
- name: Run cargo/cross clippy
run: ${{ matrix.use_cross == true && 'cross' || 'cargo' }} clippy --locked --target ${{ matrix.target }} --all-features -- -D warnings

- name: Run cargo/cross test
run: ${{ matrix.use_cross == true && 'cross' || 'cargo' }} test --locked --target ${{ matrix.target }}

0 comments on commit 093b8c9

Please sign in to comment.