Skip to content

Commit

Permalink
Merge pull request #19 from binhtran432k/ci/cache
Browse files Browse the repository at this point in the history
ci(cache): enhance restore-keys
  • Loading branch information
binhtran432k authored Mar 24, 2024
2 parents 1bdc326 + cc44ce0 commit 0decfb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo
- name: Cache perseus builds
uses: actions/cache@v4
with:
path: |
dist/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('src/**/*', 'static/**/*') }}
restore-keys: |
${{ runner.os }}-cargo
- name: Set up Bun
uses: oven-sh/setup-bun@v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/gh-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,17 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo
- name: Cache perseus builds
uses: actions/cache@v4
with:
path: |
dist/
key: ${{ runner.os }}-cargo-build-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('src/**/*', 'static/**/*') }}
restore-keys: |
${{ runner.os }}-cargo-build
- name: Set up Bun
uses: oven-sh/setup-bun@v1
Expand Down

0 comments on commit 0decfb3

Please sign in to comment.