Skip to content

Commit

Permalink
Switch from cache to setup-go builtin caching (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat authored Jun 4, 2024
1 parent cd28d60 commit 7466694
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/build_binary_from_ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,18 @@ jobs:
name: build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"

- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.inputs.repository }}
ref: ${{ github.event.inputs.ref }}

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"

- name: build-all target
run: make receptor

Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/coverage_reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@ jobs:
with:
go-version: ${{ env.DESIRED_GO_VERSION }}

- uses: actions/cache@v4
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
path: |
~/.cache/go-build
~/go/pkg/mod
restore-keys: |
${{ runner.os }}-go-
- name: build and install receptor
run: |
make build-all
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-go@v5
with:
cache: false
go-version: ${{ env.DESIRED_GO_VERSION }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down

0 comments on commit 7466694

Please sign in to comment.