Skip to content

Commit

Permalink
Adding fixes for potential heimdalld packages and fixes to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
djpolygon committed Oct 18, 2024
1 parent 2372b0b commit cd5de71
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 25 deletions.
36 changes: 13 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: CI


on:
push:
branches: ["main"]
Expand All @@ -10,19 +11,18 @@ on:
jobs:
install_aarch64:
runs-on: ubuntu-latest
timeout-minutes: 10
name: Install on ${{ matrix.distro }} ${{ matrix.arch }}
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu_latest
- arch: aarch64
distro: alpine_latest
- arch: aarch64
distro: fedora_latest
base_image: latest
platform: linux/amd64,linux/arm64

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
name: Install binary
with:
Expand All @@ -31,17 +31,9 @@ jobs:

install: |
case "${{ matrix.distro }}" in
ubuntu*|jessie|stretch|buster|bullseye)
ubuntu*|ubuntu22.04)
apt-get update -q -y
apt-get install -q -y wget sudo bash
;;
fedora*)
dnf -y update
dnf -y install wget sudo bash
;;
alpine*)
apk update
apk add wget sudo bash
apt-get install -q -y wget sudo bash adduser systemctl
;;
esac
Expand All @@ -50,21 +42,19 @@ jobs:
--volume "${PWD}:/artifacts"
run: |
bash /artifacts/bor.sh
bash /artifacts/bor.sh 0.2.17
bash /artifacts/heimdall.sh
bash /artifacts/heimdall.sh 0.2.11
bash /artifacts/bor.sh v1.4.0 amoy sentry
bash /artifacts/heimdall.sh v1.0.10 amoy sentry
install_amd64:
runs-on: ${{ matrix.os }}
name: Install on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install binary
run: |
./bor.sh 0.2.17
./heimdall.sh 0.2.11
./bor.sh v1.4.0 amoy sentry
./heimdall.sh v1.0.10 amoy sentry
5 changes: 3 additions & 2 deletions heimdall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ require_util() {
oops "you do not have '$1' installed, which I need to $2"
}

version="0.3.0"
newCLIVersion="0.3.0"
version="1.0.10"
newCLIVersion="1.0.10"
network="mainnet"
nodetype="sentry"

Expand Down Expand Up @@ -209,6 +209,7 @@ if [ $type = "tar.gz" ]; then
elif [ $type = "deb" ]; then
echo "Uninstalling any existing old binary ..."
sudo dpkg -r heimdall
sudo dpkg -r heimdalld
echo "Installing $package ..."
sudo dpkg -i $package
if [ ! -z "$profilePackage" ] && sudo [ ! -d /var/lib/heimdall/config ]; then
Expand Down

0 comments on commit cd5de71

Please sign in to comment.