From 8b804ff4024d4f027eaaf517e5981ed6f17b2764 Mon Sep 17 00:00:00 2001 From: jugeeya Date: Tue, 31 Jan 2023 16:30:46 -0800 Subject: [PATCH] [Github Action] Add rust-cache (#463) * Add rust-cache * Retrigger * rust-cache for plugin * Retrigger plugin * Separate caches for jobs * Retrigger --- .github/workflows/rust.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cd2ea53..32b6469 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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