From 89bbb9daef9e93ee08c43f65a7f4c864e3bc4fd6 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 5 Jan 2022 18:16:25 +0100 Subject: [PATCH] Allow trim to fail This will happen if no cache is found, e.g. because it has been deleted by GitHub. A cache will removed after seven days without usage --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec69155..6c665d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,7 @@ jobs: # Otherwise, the cache restored in the previous step would not be used for the build resulting in a longer workflow run. # More details: https://github.com/golang/go/blob/d60ad1e068263832c711aaf17b6ccb1b7f71b000/src/cmd/go/internal/cache/cache.go#L255-L326 run: date +%s > ~/.cache/go-build/trim.txt + continue-on-error: true - name: Build run: make build - name: Upload Poseidon binary @@ -74,6 +75,7 @@ jobs: # Otherwise, the cache restored in the previous step would not be used for the build resulting in a longer workflow run. # More details: https://github.com/golang/go/blob/d60ad1e068263832c711aaf17b6ccb1b7f71b000/src/cmd/go/internal/cache/cache.go#L255-L326 run: date +%s > ~/.cache/go-build/trim.txt + continue-on-error: true - name: Run tests run: make coverhtml - name: Upload coverage report @@ -125,6 +127,7 @@ jobs: # Otherwise, the cache restored in the previous step would not be used for the build resulting in a longer workflow run. # More details: https://github.com/golang/go/blob/d60ad1e068263832c711aaf17b6ccb1b7f71b000/src/cmd/go/internal/cache/cache.go#L255-L326 run: date +%s > ~/.cache/go-build/trim.txt + continue-on-error: true - name: Cache Nomad binary uses: actions/cache@v2 with: