Skip to content

Commit

Permalink
gha-ci: fix builds from cache: add ~/.cache/bazel (+ update actions)
Browse files Browse the repository at this point in the history
fixes golang/protobuf#1562

Update to the latest version of the actions we use while we’re at it.
For setup-go@v4 this means we get caching based on go.{mod,sum}.
For actions/cache@v3 this means we get zstd compression.

Change-Id: I4ddb1a3e15eaafe1e9c946c3f0214da4fa1424df
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/526955
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Lasse Folger <lassefolger@google.com>
  • Loading branch information
stapelberg authored and lfolger committed Sep 11, 2023
1 parent 70db1e1 commit 849f2c2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ jobs:
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: sudo apt-get -y install autoconf automake libtool curl make g++ unzip
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3.0.2
uses: actions/cache@v3
with:
path: .cache
path: |
.cache
~/.cache/bazel
key: ${{ runner.os }}-${{ hashFiles('integration_test.go') }}
- name: Test
run: go test -v -timeout=60m -count=1 -failfast integration_test.go

0 comments on commit 849f2c2

Please sign in to comment.