mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
ci: use cross-ci action
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
This commit is contained in:
parent
298aaba8d7
commit
09cfa17efb
33
.github/workflows/cross-ci.yml
vendored
33
.github/workflows/cross-ci.yml
vendored
@ -19,7 +19,7 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
cross-check:
|
||||
name: Cross checking ${{ matrix.job.target }}
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
strategy:
|
||||
@ -76,35 +76,10 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
with:
|
||||
fetch-depth: 0 # fetch all history so that git describe works
|
||||
- name: Set up Rust
|
||||
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
|
||||
|
||||
- name: Run Cross-CI action
|
||||
uses: rustic-rs/cross-ci-action@main
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
target: ${{ matrix.job.target }}
|
||||
- name: install compiler
|
||||
shell: bash
|
||||
if: matrix.job.target == 'x86_64-unknown-linux-musl'
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt-get install -y musl-tools
|
||||
- name: install compiler on macos
|
||||
shell: bash
|
||||
if: matrix.job.target == 'x86_64-apple-darwin' && matrix.job.use-cross == 'false'
|
||||
run: |
|
||||
brew install michaeleisel/zld/zld
|
||||
- name: install mold linker on linux gnu
|
||||
if: matrix.job.target == 'x86_64-unknown-linux-gnu' && matrix.job.use-cross == 'false'
|
||||
uses: rui314/setup-mold@v1
|
||||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2
|
||||
with:
|
||||
key: ${{ matrix.job.target }}
|
||||
- name: Cargo check
|
||||
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
|
||||
with:
|
||||
command: check
|
||||
use-cross: ${{ matrix.job.use-cross }}
|
||||
toolchain: ${{ matrix.job.toolchain }}
|
||||
args: --release --all-features --target ${{ matrix.job.target }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user