Skip to content

Commit

Permalink
ci: stop caching go
Browse files Browse the repository at this point in the history
Go compiles fast and it does not seems to properly recognise the cached values.

I think the extra 25s it takes to load and save the go cache is longer than what we gain.
  • Loading branch information
Jorropo committed Aug 4, 2023
1 parent 7977f26 commit f1a2ef0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ jobs:
sleep 1
done
timeout-minutes: 5
- uses: protocol/cache-go-action@v1
with:
name: ${{ github.job }}
- run: go test -count=1 -v ./...
working-directory: go-ipfs-api
- run: cmd/ipfs/ipfs shutdown
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/gobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
with:
go-version: 1.19.x
- uses: actions/checkout@v3
- uses: protocol/cache-go-action@v1
with:
name: ${{ github.job }}
- run: make cmd/ipfs-try-build
env:
TEST_FUSE: 1
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/golint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,4 @@ jobs:
with:
go-version: 1.19.x
- uses: actions/checkout@v3
- uses: protocol/cache-go-action@v1
with:
name: ${{ github.job }}
- run: make -O test_go_lint
4 changes: 0 additions & 4 deletions .github/workflows/gotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
go-version: 1.19.x
- name: Check out Kubo
uses: actions/checkout@v3
- name: Restore Go cache
uses: protocol/cache-go-action@v1
with:
name: ${{ github.job }}
- name: 👉️ If this step failed, go to «Summary» (top left) → inspect the «Failures/Errors» table
env:
# increasing parallelism beyond 2 doesn't speed up the tests much
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/sharness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ jobs:
path: kubo
- name: Install missing tools
run: sudo apt update && sudo apt install -y socat net-tools fish libxml2-utils
- name: Restore Go Cache
uses: protocol/cache-go-action@v1
with:
name: ${{ github.job }}
- uses: actions/cache@v3
with:
path: test/sharness/lib/dependencies
Expand Down

0 comments on commit f1a2ef0

Please sign in to comment.