Skip to content

Commit

Permalink
fix: try to fix caching problem
Browse files Browse the repository at this point in the history
  • Loading branch information
sakateka committed Feb 11, 2025
1 parent 3b45418 commit e202d32
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,23 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.23.x'
cache: false
check-latest: true
cache-dependency-path: |
tests/go/go.sum
- name: Display Go version
run: go version
# https://github.com/actions/setup-go/issues/358
- name: Get Go environment
run: |
echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV
echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV
- name: Set up cache
uses: actions/cache@v3
with:
path: |
${{ env.cache }}
${{ env.modcache }}
key: ${{ env.cache_name }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }}
restore-keys: |
${{ env.cache_name }}-${{ runner.os }}-go-
- run:
meson test -C build
- name: Show meson test log
Expand Down

0 comments on commit e202d32

Please sign in to comment.