chore: Enable caching for Rust and NPM to speed up CI
This commit is contained in:
10
.github/workflows/build-mips.yml
vendored
10
.github/workflows/build-mips.yml
vendored
@@ -13,7 +13,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
@@ -21,6 +26,9 @@ jobs:
|
|||||||
targets: wasm32-unknown-unknown
|
targets: wasm32-unknown-unknown
|
||||||
components: rust-src
|
components: rust-src
|
||||||
|
|
||||||
|
- name: Rust Cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Install Trunk
|
- name: Install Trunk
|
||||||
uses: jetli/trunk-action@v0.5.0
|
uses: jetli/trunk-action@v0.5.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user