Skip to content

Commit

Permalink
more caching
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM committed Jan 18, 2025
1 parent d4d8147 commit 228c096
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,20 @@ jobs:
path: |
/var/lib/apt/lists
/var/cache/apt/archives
key: ${{ runner.os }}-apt-${{ hashFiles('Makefile') }}
key: ${{ runner.os }}-apt-${{ hashFiles('Makefile') }}-v1
restore-keys: |
${{ runner.os }}-apt-${{ hashFiles('Makefile') }}-
${{ runner.os }}-apt-
- name: Cache protoc
uses: actions/cache@v3
id: protoc-cache
with:
path: /usr/local/bin/protoc
key: ${{ runner.os }}-protoc-29.3-v1

- name: Install Protoc
if: steps.protoc-cache.outputs.cache-hit != 'true'
run: |
PROTOC_VERSION="29.3"
PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-x86_64.zip"
Expand All @@ -61,13 +70,11 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v1
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-
- name: Lint
run: make lint

- name: Check
run: make check

Expand Down

0 comments on commit 228c096

Please sign in to comment.