GitHub test actions: fix warnings 'Restore cache failed'

This commit is contained in:
Andreas Deininger 2024-08-17 12:39:41 +02:00 committed by Michael Eischer
parent f6e8d92590
commit 12089054d8

View file

@ -66,6 +66,9 @@ jobs:
GOPROXY: https://proxy.golang.org GOPROXY: https://proxy.golang.org
steps: steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go }} - name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
@ -139,9 +142,6 @@ jobs:
echo $Env:USERPROFILE\tar\bin >> $Env:GITHUB_PATH echo $Env:USERPROFILE\tar\bin >> $Env:GITHUB_PATH
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
- name: Check out code
uses: actions/checkout@v4
- name: Build with build.go - name: Build with build.go
run: | run: |
go run build.go go run build.go
@ -230,14 +230,14 @@ jobs:
name: Cross Compile for subset ${{ matrix.subset }} name: Cross Compile for subset ${{ matrix.subset }}
steps: steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go ${{ env.latest_go }} - name: Set up Go ${{ env.latest_go }}
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: ${{ env.latest_go }} go-version: ${{ env.latest_go }}
- name: Check out code
uses: actions/checkout@v4
- name: Cross-compile for subset ${{ matrix.subset }} - name: Cross-compile for subset ${{ matrix.subset }}
run: | run: |
mkdir build-output build-output-debug mkdir build-output build-output-debug
@ -252,14 +252,14 @@ jobs:
# allow annotating code in the PR # allow annotating code in the PR
checks: write checks: write
steps: steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go ${{ env.latest_go }} - name: Set up Go ${{ env.latest_go }}
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: ${{ env.latest_go }} go-version: ${{ env.latest_go }}
- name: Check out code
uses: actions/checkout@v4
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v6 uses: golangci/golangci-lint-action@v6
with: with: