ci: replace cargo-cross with setup-cross-toolchain-action

This commit is contained in:
Amaan Qureshi 2026-04-11 02:52:54 -04:00
commit 9f7fa83c6b
No known key found for this signature in database

View file

@ -34,12 +34,14 @@ jobs:
- name: "Make Mold the default linker" - name: "Make Mold the default linker"
uses: rui314/setup-mold@v1 uses: rui314/setup-mold@v1
- name: "Install cross" - name: "Setup cross-compilation toolchain"
run: cargo install cross --git https://github.com/cross-rs/cross uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
- name: "Build" - name: "Build"
run: cross build --verbose --target ${{ matrix.target }} run: cargo build --verbose
- name: "Run tests" - name: "Run tests"
if: matrix.target == 'x86_64-unknown-linux-gnu' if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cross test --verbose --target ${{ matrix.target }} run: cargo test --verbose