feat(workflow): cache trunk seperately
This commit is contained in:
parent
19fc694238
commit
37a1e5e9a9
22
.github/workflows/prod.yml
vendored
22
.github/workflows/prod.yml
vendored
@ -14,23 +14,31 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: install rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
|
||||||
|
- name: cache trunk
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/trunk
|
||||||
|
~/.cache/trunk/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('~/.cargo/bin/trunk') }}
|
||||||
|
restore-keys: ${{ runner.os }}-trunk
|
||||||
|
|
||||||
- name: cache dependencies
|
- name: cache dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/
|
~/.cargo/
|
||||||
~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
~/.cache/trunk/
|
|
||||||
target/
|
target/
|
||||||
node_modules/
|
node_modules/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-cargo-wordl
|
restore-keys: ${{ runner.os }}-cargo-wordl
|
||||||
|
|
||||||
- name: install rust
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- name: add rust target wasm32-unknown-unknown
|
- name: add rust target wasm32-unknown-unknown
|
||||||
run: rustup target add wasm32-unknown-unknown
|
run: rustup target add wasm32-unknown-unknown
|
||||||
|
Loading…
x
Reference in New Issue
Block a user