Skip to content

Commit

Permalink
Cache build and test seperately
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Sep 28, 2023
1 parent c133d13 commit b80b907
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ github.sha }}
key: ${{ runner.os }}-bazel-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-bazel-build-
${{ runner.os }}-bazel-
- name: Build Lemming
run: bazel build //...
Expand All @@ -41,7 +42,7 @@ jobs:
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ github.sha }}
key: ${{ runner.os }}-bazel-build-${{ github.sha }}
test:
runs-on: ubuntu-latest
steps:
Expand All @@ -53,8 +54,9 @@ jobs:
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ github.sha }}
key: ${{ runner.os }}-bazel-test-${{ github.sha }}
restore-keys: |
${{ runner.os }}-bazel-test-
${{ runner.os }}-bazel-
- name: Test
run: make coverage
Expand All @@ -71,4 +73,4 @@ jobs:
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ github.sha }}
key: ${{ runner.os }}-bazel-test-${{ github.sha }}

0 comments on commit b80b907

Please sign in to comment.