1
0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2026-01-22 10:20:24 +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:
jugeeya
2023-01-31 16:30:46 -08:00
committed by GitHub
parent 5bb12d04fb
commit 8b804ff402

View File

@@ -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