From 4c1e8c742eaa4d113f206ddf5fa91078a2f2f29a Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Mon, 19 Dec 2022 10:14:41 +0100 Subject: [PATCH] Try improving repeated-builds performance --- .github/workflows/linux-ci.yml | 7 +++---- .github/workflows/windows-ci.yml | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 484b73a..f2f5ac4 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -16,11 +16,10 @@ jobs: - name: Install golangci-lint run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.50.1 - # Source: https://www.scivision.dev/github-actions-path-append/ - # - # Required for the golangci-lint that we just installed to work. + # Required for the golangci-lint that we just installed to work. Also + # gives us some caching. - name: Add GOPATH/bin to PATH - run: echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" + uses: actions/setup-go@v3 - name: Check out repository code uses: actions/checkout@v2 diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index 62a68cd..347c3b1 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -11,5 +11,9 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v2 + + # Add some caching, should help for PRs with multiple pushes. + - uses: actions/setup-go@v3 + - run: go build - run: go test -timeout 30s ./...