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).
This commit is contained in:
parent
0668943330
commit
89facea27f
|
@ -37,20 +37,16 @@ jobs:
|
||||||
- x86_64-unknown-linux-musl
|
- x86_64-unknown-linux-musl
|
||||||
# - x86_64-unknown-netbsd # error in tests "error: test failed, to rerun pass '--lib'", disabled for now
|
# - x86_64-unknown-netbsd # error in tests "error: test failed, to rerun pass '--lib'", disabled for now
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Crate
|
- name: "Checkout repo"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- uses: Swatinem/rust-cache@v1.2.0
|
- uses: Swatinem/rust-cache@v1.2.0
|
||||||
with:
|
with:
|
||||||
key: ${{ matrix.feature }}${{ matrix.os }}
|
key: ${{ matrix.feature }}${{ matrix.os }}
|
||||||
- name: Checkout Toolchain
|
- name: "Select toolchain"
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
- name: "Install target"
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- name: Install target
|
|
||||||
run: rustup target add ${{ matrix.arch }}
|
run: rustup target add ${{ matrix.arch }}
|
||||||
- name: install cross
|
- name: "Install cross"
|
||||||
run: cargo install cross
|
run: cargo install cross
|
||||||
- name: run cross test
|
- name: "Run cross test"
|
||||||
run: cross test --target ${{ matrix.arch }} --verbose
|
run: cross test --target ${{ matrix.arch }} --verbose
|
||||||
|
|
Loading…
Reference in New Issue