Skip to content

Commit

Permalink
Cache bazel outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ogolberg authored Mar 13, 2024
1 parent 60a6019 commit 712356e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ jobs:
repository: protocolbuffers/protobuf
ref: ${{ env.proto_tag }}
path: protobuf
- name: Bazel cache
uses: actions/cache@v2
with:
path: bazel-cache
key: bazel-${{ matrix.os }}-${{ hashFiles('WORKSPACE', 'BUILD.bazel') }}
- name: Build runner binary
run: bazelisk build conformance/conformance_test_runner
run: bazelisk --output_base=../bazel-cache build conformance/conformance_test_runner
working-directory: protobuf
- name: Copy binary
run: cp bazel-bin/conformance/conformance_test_runner conformance_test_runner-${{ matrix.os }}-${{ env.proto_tag }}
Expand Down

0 comments on commit 712356e

Please sign in to comment.