mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-02-16 06:00:31 +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
|
components: rustfmt, clippy
|
||||||
default: true
|
default: true
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
name: Rust Cache
|
||||||
|
with:
|
||||||
|
prefix-key: "checker"
|
||||||
- name: Check
|
- name: Check
|
||||||
run: cargo +nightly check --target=x86_64-unknown-linux-gnu
|
run: cargo +nightly check --target=x86_64-unknown-linux-gnu
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
|
@ -32,6 +36,10 @@ jobs:
|
||||||
image: jugeeya/cargo-skyline:3.2.0-no-dkp
|
image: jugeeya/cargo-skyline:3.2.0-no-dkp
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
name: Rust Cache
|
||||||
|
with:
|
||||||
|
prefix-key: "plugin"
|
||||||
- name: Build release NRO
|
- name: Build release NRO
|
||||||
id: build_release
|
id: build_release
|
||||||
run: cargo-skyline skyline build --release
|
run: cargo-skyline skyline build --release
|
||||||
|
@ -55,6 +63,10 @@ jobs:
|
||||||
image: jugeeya/cargo-skyline:3.2.0-no-dkp
|
image: jugeeya/cargo-skyline:3.2.0-no-dkp
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
name: Rust Cache
|
||||||
|
with:
|
||||||
|
prefix-key: "plugin"
|
||||||
- name: Build outside_training_mode NRO
|
- name: Build outside_training_mode NRO
|
||||||
run: |
|
run: |
|
||||||
cargo-skyline skyline build --release --features outside_training_mode
|
cargo-skyline skyline build --release --features outside_training_mode
|
||||||
|
|
Loading…
Reference in a new issue