From bf5612ab00c5e306cbfd676dbd12168bc493eb3d Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 22 Oct 2023 17:11:20 +0100 Subject: [PATCH] tidy 'test.yml' --- .github/workflows/test.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc64c28ce5..2a84431e84 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,9 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: dtolnay/rust-toolchain@master + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable components: rustfmt - name: Run rustfmt run: cargo fmt --all -- --check @@ -31,9 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: dtolnay/rust-toolchain@master - with: - toolchain: stable + - uses: dtolnay/rust-toolchain@stable - name: Run internal tests run: | dialects=("ardupilotmega", "asluav", "autoquad", "matrixpilot", "minimal", "paparazzi", "python_array_test", "slugs", "standard", "test", "ualberta", "uavionix", "icarous", "common") @@ -49,9 +46,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: dtolnay/rust-toolchain@master - with: - toolchain: stable + - uses: dtolnay/rust-toolchain@stable - name: Build mavlink-dump run: cargo build --verbose --bin mavlink-dump --features ardupilotmega @@ -107,11 +102,9 @@ jobs: - name: Building ${{ matrix.TARGET }} run: echo "${{ matrix.TARGET }}" - uses: actions/checkout@master - - uses: dtolnay/rust-toolchain@master + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable target: ${{ matrix.TARGET }} - override: true - uses: actions-rs/cargo@v1 with: use-cross: true @@ -123,11 +116,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: dtolnay/rust-toolchain@master + - uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly target: thumbv7em-none-eabihf - override: true - name: Build run: cargo +nightly build --target thumbv7em-none-eabihf --manifest-path examples/embedded/Cargo.toml --out-dir $PWD --release -Z unstable-options @@ -136,10 +127,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: actions-rs/toolchain@v1.0.6 - with: - toolchain: stable - override: true + - uses: dtolnay/rust-toolchain@stable - name: Build docs run: cargo doc - name: Deploy