Skip to content

Commit

Permalink
Merge pull request #18 from binhtran432k/ci/cache
Browse files Browse the repository at this point in the history
ci: update perseus cache
  • Loading branch information
binhtran432k authored Mar 24, 2024
2 parents c0d2855 + 392590d commit 1bdc326
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,15 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
dist/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}

- name: Cache perseus builds
uses: actions/cache@v4
with:
path: |
dist/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('src/**/*', 'static/**/*') }}

- name: Set up Bun
uses: oven-sh/setup-bun@v1

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/gh-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}

- name: Cache perseus builds
uses: actions/cache@v4
with:
path: |
dist/
key: ${{ runner.os }}-cargo-build-${{ hashFiles('Cargo.lock') }}
key: ${{ runner.os }}-cargo-build-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('src/**/*', 'static/**/*') }}

- name: Set up Bun
uses: oven-sh/setup-bun@v1
Expand Down

0 comments on commit 1bdc326

Please sign in to comment.