Skip to content

Commit

Permalink
Add caching/switch to just building
Browse files Browse the repository at this point in the history
  • Loading branch information
boomanaiden154 committed Oct 13, 2023
1 parent b3ba252 commit 4f26eef
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run checks
run: bazel test ...
- name: Cache Bazel
uses: actions/cache@v3
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
restore-keys: |
${{ runner.os }}-bazel-
- name: Run build
run: bazel build ...

0 comments on commit 4f26eef

Please sign in to comment.