Skip to content

Commit

Permalink
ci: fix setup go cache (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond authored May 24, 2024
1 parent 448db81 commit f740064
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/software-upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,6 @@ jobs:
fetch-tags: true
if: steps.cache-old-binaries.outputs.cache-hit != 'true'

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
if: steps.cache-old-binaries.outputs.cache-hit != 'true'

# TODO: to remove when upgrade-assure binary is available in previous release
- name: Copy upgrade assure folder
run: |
Expand All @@ -231,6 +225,12 @@ jobs:
run: git checkout ${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-old-binaries.outputs.cache-hit != 'true'

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
if: steps.cache-old-binaries.outputs.cache-hit != 'true'

# TODO: to remove when upgrade-assure binary is available in previous release
- name: Copy old upgrade assure types.go file
run: |
Expand Down Expand Up @@ -276,6 +276,7 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-chain-snapshot-and-export.outputs.cache-hit != 'true'

- name: Set up Go
Expand All @@ -284,10 +285,6 @@ jobs:
go-version: "1.21"
if: steps.cache-chain-snapshot-and-export.outputs.cache-hit != 'true'

- name: Check out latest tag
run: git checkout ${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-chain-snapshot-and-export.outputs.cache-hit != 'true'

- name: Restore snapshot from cache
uses: actions/cache/restore@v4
with:
Expand Down Expand Up @@ -364,6 +361,7 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-chain-init.outputs.cache-hit != 'true'

- name: Set up Go
Expand All @@ -372,10 +370,6 @@ jobs:
go-version: "1.21"
if: steps.cache-chain-init.outputs.cache-hit != 'true'

- name: Check out latest tag
run: git checkout ${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-chain-init.outputs.cache-hit != 'true'

- name: Restore chain snapshot and export from cache
uses: actions/cache/restore@v4
with:
Expand Down

0 comments on commit f740064

Please sign in to comment.