Template
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50ecad1842 | ||
|
|
9bcfd7d966 |
+15
-17
@@ -16,22 +16,18 @@ jobs:
|
||||
|
||||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Install cargo fmt
|
||||
run: rustup component add rustfmt
|
||||
|
||||
- name: Install cargo clippy
|
||||
run: rustup component add clippy
|
||||
|
||||
- name: Install cargo sort
|
||||
uses: taiki-e/cache-cargo-install-action@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # v2.0.1
|
||||
with:
|
||||
tool: cargo-sort@1.0.9
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Install cargo sort
|
||||
uses: taiki-e/cache-cargo-install-action@v3 # v3
|
||||
with:
|
||||
tool: cargo-sort
|
||||
|
||||
- name: Install cargo machete
|
||||
uses: taiki-e/cache-cargo-install-action@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # v2.0.1
|
||||
uses: taiki-e/cache-cargo-install-action@v3 # v3
|
||||
with:
|
||||
tool: cargo-machete@0.7.0
|
||||
tool: cargo-machete
|
||||
|
||||
- name: Cache cargo dependencies
|
||||
uses: actions/cache@v4
|
||||
@@ -73,7 +69,9 @@ jobs:
|
||||
targets: x86_64-unknown-linux-musl
|
||||
|
||||
- name: Install Cross
|
||||
run: cargo install cargo-cross
|
||||
uses: taiki-e/cache-cargo-install-action@v3 # v3
|
||||
with:
|
||||
tool: cargo-cross
|
||||
|
||||
- name: Cache cargo dependencies
|
||||
uses: actions/cache@v4
|
||||
@@ -90,13 +88,13 @@ jobs:
|
||||
|
||||
- name: Build for Linux x86 (GNU and MUSL)
|
||||
run: |
|
||||
cargo build --release --target x86_64-unknown-linux-gnu --locked
|
||||
cargo build --release --target x86_64-unknown-linux-musl --locked
|
||||
cargo build --target x86_64-unknown-linux-gnu --release --locked
|
||||
cargo build --target x86_64-unknown-linux-musl --release --locked
|
||||
|
||||
- name: Build for Linux aarch64 (GNU and MUSL)
|
||||
run: |
|
||||
cargo cross --release --target aarch64-unknown-linux-gnu --locked
|
||||
cargo cross --release --target aarch64-unknown-linux-musl --locked
|
||||
cargo cross --target aarch64-unknown-linux-gnu --release --locked
|
||||
cargo cross --target aarch64-unknown-linux-musl --release --locked
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user