diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c24f088..7fc959b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,40 +13,28 @@ jobs: - beta - nightly - 1.69.0 # MSRV + target: + - aarch64-linux-android + - x86_64-unknown-linux-gnu steps: - name: Checkout repo uses: actions/checkout@v2 - - name: Setup rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true - components: rustfmt, clippy + - run: rustup toolchain add --profile=minimal ${{ matrix.rust }} --component clippy --component rustfmt - - name: cargo build - uses: actions-rs/cargo@v1 - with: - command: build + - run: rustup target add --toolchain=${{ matrix.rust }} ${{ matrix.target }} - - name: cargo test - uses: actions-rs/cargo@v1 - with: - command: test + - run: cargo +${{ matrix.rust }} build --target=${{ matrix.target }} - - name: cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - if: matrix.target == "x86_64-unknown-linux-gnu" + run: cargo +${{ matrix.rust }} test - - name: cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - if: matrix.target == "x86_64-unknown-linux-gnu" + run: cargo +${{ matrix.rust }} fmt --all --check + + - if: matrix.target == "x86_64-unknown-linux-gnu" + run: cargo +${{ matrix.rust }} clippy -- -D warnings semver: name: Check semver (must manually inspect)