Skip to content

Commit

Permalink
ci: additional fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed May 15, 2024
1 parent 6af20b1 commit 6fe5eef
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/software-upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
NEW_UPGRADE_ASSURE_BINARY_PATH: ${{ steps.build-new-binaries.outputs.NEW_UPGRADE_ASSURE_BINARY_PATH }}
SNAPSHOT_DOWNLOAD_URL: ${{ steps.retrieve-info-json.outputs.SNAPSHOT_DOWNLOAD_URL }}
NEW_BINARY_PATH: ${{ steps.build-new-binaries.outputs.NEW_BINARY_PATH }}
UPLOAD_SNAPSHOT_BINARY_PATH: ${{ steps.build-new-binaries.outputs.UPLOAD_SNAPSHOT_BINARY_PATH }}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -59,8 +60,8 @@ jobs:
id: cache-elys-folders
with:
path: |
$HOME/.elys
$HOME/.elys2
${{ env.HOME }}/.elys
${{ env.$HOME }}/.elys2
key: ${{ runner.os }}-elys-folders-${{ env.LATEST_TAG }}

- name: Retrieve latest binary
Expand Down Expand Up @@ -158,7 +159,7 @@ jobs:

- name: Save up space
run: |
rm -rf ~/.elys/config/genesis.json
rm -rf /tmp/genesis.json
- name: Prepare second validator data
run: |
Expand Down Expand Up @@ -188,7 +189,10 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: workspace
path: .
path: |
${{ env.NEW_BINARY_PATH }}
${{ env.NEW_UPGRADE_ASSURE_BINARY_PATH}}
${{ env.UPLOAD_SNAPSHOT_BINARY_PATH }}
post-software-upgrade:
runs-on: ubuntu-latest
Expand All @@ -200,20 +204,23 @@ jobs:
uses: actions/download-artifact@v3
with:
name: workspace
path: .
path: |
${{ needs.pre-software-upgrade.outputs.NEW_BINARY_PATH }}
${{ needs.pre-software-upgrade.outputs.NEW_UPGRADE_ASSURE_BINARY_PATH}}
${{ needs.pre-software-upgrade.outputs.UPLOAD_SNAPSHOT_BINARY_PATH }}
- name: Restore elys folders from cache
id: cache-elys-folders
uses: actions/cache/restore@v4
with:
path: |
$HOME/.elys
$HOME/.elys2
${{ env.HOME }}/.elys
${{ env.HOME }}/.elys2
key: ${{ runner.os }}-elys-folders-${{ needs.pre-software-upgrade.outputs.LATEST_TAG }}

- name: Upgrade to new binary
run: |
GOMEMLIMIT=4GiB \
GOMEMLIMIT=8GiB \
${{ needs.pre-software-upgrade.outputs.NEW_UPGRADE_ASSURE_BINARY_PATH }} \
${{ needs.pre-software-upgrade.outputs.SNAPSHOT_DOWNLOAD_URL }} \
${{ needs.pre-software-upgrade.outputs.NEW_BINARY_PATH }} \
Expand Down

0 comments on commit 6fe5eef

Please sign in to comment.