Skip to content

Commit

Permalink
Merge branch 'fraccaman/hermes-ci' (#2828)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli authored and Gianmarco Fraccaroli committed Mar 8, 2024
2 parents 2ba001d + 43de5a8 commit f55e842
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ jobs:
nightly_version: [nightly-2024-02-10]
mold_version: [2.4.0]
comet_bft: [0.37.2]
hermes: [1.7.4-namada-beta7]
make:
- index: 0
- index: 1
Expand Down Expand Up @@ -649,9 +648,19 @@ jobs:
mv cometbft /usr/local/bin
- name: Download Hermes
run: |
curl -o hermes.tar.gz -LO https://github.com/heliaxdev/hermes/releases/download/v${{ matrix.hermes }}/hermes-v${{ matrix.hermes }}-x86_64-unknown-linux-gnu.tar.gz
tar -xvzf hermes.tar.gz
echo "Using hermes for branch: ${BRANCH_NAME}"
HERMES_VERSION=$(cat .github/workflows/scripts/hermes.json | jq .${BRANCH_ENV:-invalid} -r -e)
HERMES_VERSION_DEFAULT=$(cat .github/workflows/scripts/hermes.json | jq .default -r)
if [ -z "$HERMES_VERSION" ]
then
HERMES_VERSION=$HERMES_VERSION_DEFAULT
fi
echo "Using hermes version: ${HERMES_VERSION}"
curl -o hermes.zip -LO https://github.com/heliaxdev/hermes/releases/download/v${HERMES_VERSION}/hermes-v${HERMES_VERSION}-x86_64-unknown-linux-gnu.zip
unzip hermes.zip
mv hermes /usr/local/bin
env:
BRANCH_NAME: ${GITHUB_REF##*/}
- name: Change permissions
run: |
chmod +x target/release/namada
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scripts/hermes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"default": "1.7.4-namada-beta7"
}

0 comments on commit f55e842

Please sign in to comment.