mirror of
https://github.com/NotAShelf/microfetch.git
synced 2026-04-12 04:47:40 +00:00
ci: replace cargo-cross with setup-cross-toolchain-action
This commit is contained in:
parent
c4b7afbf46
commit
9f7fa83c6b
1 changed files with 6 additions and 4 deletions
10
.github/workflows/rust.yml
vendored
10
.github/workflows/rust.yml
vendored
|
|
@ -34,12 +34,14 @@ jobs:
|
|||
- name: "Make Mold the default linker"
|
||||
uses: rui314/setup-mold@v1
|
||||
|
||||
- name: "Install cross"
|
||||
run: cargo install cross --git https://github.com/cross-rs/cross
|
||||
- name: "Setup cross-compilation toolchain"
|
||||
uses: taiki-e/setup-cross-toolchain-action@v1
|
||||
with:
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: "Build"
|
||||
run: cross build --verbose --target ${{ matrix.target }}
|
||||
run: cargo build --verbose
|
||||
|
||||
- name: "Run tests"
|
||||
if: matrix.target == 'x86_64-unknown-linux-gnu'
|
||||
run: cross test --verbose --target ${{ matrix.target }}
|
||||
run: cargo test --verbose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue