Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding fixes for potential heimdalld packages and fixes to CI #21

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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