Skip to content

Commit

Permalink
skip saving and installing if everything already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DominoTree committed Apr 22, 2024
1 parent c0f9289 commit f472035
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ jobs:
key: cache-npm-${{ hashFiles('ui/package-lock.json') }}

- name: Install dependencies
if: steps.cash-npm-deps-restore.outputs.cache-hit != 'true'
if: steps.cache-npm-deps-restore.outputs.cache-hit != 'true'
run: npm install

- name: npm Build
run: npm run build

- name: Save dependencies
id: cache-npm-deps-save
if: steps.cache-npm-deps-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ui/node_modules
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test_rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ jobs:
path: |
/home/runner/.cargo
${{ github.workspace }}/target
key: cache-${{ hashFiles('Cargo.toml') }}
key: cache-cargo-${{ hashFiles('Cargo.toml') }}

- name: Cargo Check
run: cargo check --verbose

- name: Save dependencies
id: cache-cargo-save
if: steps.cache-cargo-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: |
/home/runner/.cargo
${{ github.workspace }}/target
key: cache-${{ hashFiles('Cargo.toml') }}
key: cache-cargo-${{ hashFiles('Cargo.toml') }}

0 comments on commit f472035

Please sign in to comment.