mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 02:44:17 +00:00
[Github Action] Add rust-cache (#463)
* Add rust-cache * Retrigger * rust-cache for plugin * Retrigger plugin * Separate caches for jobs * Retrigger
This commit is contained in:
parent
5bb12d04fb
commit
8b804ff402
1 changed files with 12 additions and 0 deletions
12
.github/workflows/rust.yml
vendored
12
.github/workflows/rust.yml
vendored
|
@ -21,6 +21,10 @@ jobs:
|
|||
components: rustfmt, clippy
|
||||
default: true
|
||||
target: x86_64-unknown-linux-gnu
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
name: Rust Cache
|
||||
with:
|
||||
prefix-key: "checker"
|
||||
- name: Check
|
||||
run: cargo +nightly check --target=x86_64-unknown-linux-gnu
|
||||
- name: Clippy
|
||||
|
@ -32,6 +36,10 @@ jobs:
|
|||
image: jugeeya/cargo-skyline:3.2.0-no-dkp
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
name: Rust Cache
|
||||
with:
|
||||
prefix-key: "plugin"
|
||||
- name: Build release NRO
|
||||
id: build_release
|
||||
run: cargo-skyline skyline build --release
|
||||
|
@ -55,6 +63,10 @@ jobs:
|
|||
image: jugeeya/cargo-skyline:3.2.0-no-dkp
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
name: Rust Cache
|
||||
with:
|
||||
prefix-key: "plugin"
|
||||
- name: Build outside_training_mode NRO
|
||||
run: |
|
||||
cargo-skyline skyline build --release --features outside_training_mode
|
||||
|
|
Loading…
Reference in a new issue