Skip to content

Commit

Permalink
Rewrite cross to use dtolnay runner
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
tcharding committed Aug 29, 2024
1 parent 0668943 commit 89facea
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit 89facea

Please sign in to comment.