Skip to content

Commit

Permalink
Store bazel cache so recompile is faster
Browse files Browse the repository at this point in the history
  • Loading branch information
shkoo committed Aug 20, 2024
1 parent 8a29839 commit 1ebc089
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,22 @@ jobs:
- os: Linux
config: --config=ci
steps:
# Flush bazel cache once per week
- name: Get current week
id: get-week
run: echo "week=$(/bin/date -u "+$Y-%w")" >> $GITHUB_OUTPUT
shell: bash
- name: Bazel cache
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: bazel-${{ runner.os }}-${{ steps.get-week.output.week }}
- uses: actions/checkout@v3
- uses: ./.github/actions/bazelisk
- name: bazel info
env:
CONFIG: ${{ matrix.config }}
run: bazelisk info && echo WITH CONFIG {$CONFIG} && bazelisk info ${CONFIG}
- name: Build & test
env:
CONFIG: ${{ matrix.config }}
Expand Down

0 comments on commit 1ebc089

Please sign in to comment.