Skip to content

Commit

Permalink
ci: add build step in prepare val data (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond authored May 25, 2024
1 parent 5b25fc0 commit 51a1447
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/software-upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ jobs:
run: |
# build new upgrade assure binary
make build-upgrade-assure
mv ./build/upgrade-assure ${{ needs.build-new-binary.outputs.NEW_UPGRADE_ASSURE_BINARY_PATH}}
mv ./build/upgrade-assure ${{ needs.build-new-binary.outputs.NEW_UPGRADE_ASSURE_BINARY_PATH }}
if: steps.cache-create-second-validator.outputs.cache-hit != 'true'

- name: Restore old binary from cache
Expand Down Expand Up @@ -558,11 +558,19 @@ jobs:
with:
path: |
${{ needs.build-new-binary.outputs.NEW_BINARY_PATH }}
${{ needs.build-new-binary.outputs.NEW_UPGRADE_ASSURE_BINARY_PATH}}
${{ needs.build-new-binary.outputs.NEW_UPGRADE_ASSURE_BINARY_PATH }}
${{ needs.build-new-binary.outputs.UPLOAD_SNAPSHOT_BINARY_PATH }}
key: ${{ needs.build-new-binary.outputs.CACHE_KEY }}
if: steps.cache-prepare-validator-data.outputs.cache-hit != 'true'

- name: Build new binaries
id: build-new-binaries
run: |
# build new upgrade assure binary
make build-upgrade-assure
mv ./build/upgrade-assure ${{ needs.build-new-binary.outputs.NEW_UPGRADE_ASSURE_BINARY_PATH }}
if: steps.cache-prepare-validator-data.outputs.cache-hit != 'true'

- name: Restore old binary from cache
uses: actions/cache@v4
with:
Expand Down

0 comments on commit 51a1447

Please sign in to comment.