From bdb8bc3f0a5f62ddff224d2e8d268113c60d3edb Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 7 Aug 2024 07:04:02 +1000 Subject: [PATCH] Rewrite cross to use dtolnay runner As we do in other places stop using the `actions` runner and use the `dtolnay` one to checkout toolchain. While we are at it, use double quotes for `name` fields (this is a small stylistic thing I have been introducing in an effort to make the yaml files a bit easier to read). --- .github/workflows/cross.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 84c8e894f..2d421f7fe 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -37,20 +37,16 @@ jobs: - x86_64-unknown-linux-musl # - x86_64-unknown-netbsd # error in tests "error: test failed, to rerun pass '--lib'", disabled for now steps: - - name: Checkout Crate - uses: actions/checkout@v2 + - name: "Checkout repo" + uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v1.2.0 with: key: ${{ matrix.feature }}${{ matrix.os }} - - name: Checkout Toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: Install target + - name: "Select toolchain" + uses: dtolnay/rust-toolchain@stable + - name: "Install target" run: rustup target add ${{ matrix.arch }} - - name: install cross + - name: "Install cross" run: cargo install cross - - name: run cross test + - name: "Run cross test" run: cross test --target ${{ matrix.arch }} --verbose