Skip to content

Install xz in macOS test setup and remove xz requirement from install… #743

Install xz in macOS test setup and remove xz requirement from install…

Install xz in macOS test setup and remove xz requirement from install… #743

Workflow file for this run

name: Scripts
on:
workflow_dispatch:
push:
branches-ignore: [master]
pull_request:
branches: [master]
jobs:
linux-scripts:
name: test Linux scripts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Test Environment
run: |
sudo /bin/bash ./test/environment_setup.sh
- name: Install Prerequisites
run: |
sudo /bin/bash ./scripts/dappnode_install_pre.sh UPDATE
- name: Install DAppNode
run: |
sudo /bin/bash ./scripts/dappnode_install.sh --local-profile-path "$PWD/.dappnode_profile"
- name: Show installation logs
run: |
cat /usr/src/dappnode/logs/install.log
cat /usr/src/dappnode/logs/dappnode_install.log
- name: Uninstall DAppNode
run: |
sudo /bin/bash ./scripts/dappnode_uninstall.sh y
macos-scripts:
name: test macOS scripts
runs-on: macos-15-intel
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Docker client and Colima
run: |
brew install docker docker-compose colima
mkdir -p "$HOME/.docker/cli-plugins"
ln -sf "$(command -v docker-compose)" "$HOME/.docker/cli-plugins/docker-compose"
docker compose version
- name: Start Colima
run: |
colima start --cpu 2 --memory 4 --disk 20
colima ssh -- sh -lc '
if command -v apk >/dev/null 2>&1; then
sudo apk add --no-cache xz
elif command -v apt-get >/dev/null 2>&1; then
sudo apt-get update && sudo apt-get install -y xz-utils
elif command -v dnf >/dev/null 2>&1; then
sudo dnf install -y xz
elif command -v yum >/dev/null 2>&1; then
sudo yum install -y xz
else
echo "Unsupported Colima guest OS; could not install xz" >&2
exit 1
fi
command -v xz
xz --version
'
docker version
docker info
- name: Install DAppNode
run: |
/bin/bash ./scripts/dappnode_install.sh --local-profile-path "$PWD/.dappnode_profile"
- name: Show installation logs
if: always()
run: |
cat "$HOME/dappnode/logs/dappnode_install.log"
- name: Uninstall DAppNode
if: always()
run: |
/bin/bash ./scripts/dappnode_uninstall.sh y
- name: Stop Colima
if: always()
run: |
colima stop
iso:
name: test Debian and Ubuntu ISO
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
# Create Debian ISO
- name: create Debian ISO
run: |
export BASE_OS=debian
export UNATTENDED=true
docker compose up --build
ls images/
# Verify Debian ISO creation
- name: verify Debian ISO
run: |
ls -lrt images/Dappnode-debian-*.iso
# Create Ubuntu ISO
- name: create Ubuntu ISO
run: |
export BASE_OS=ubuntu
export UNATTENDED=true
docker compose up --build
ls images/
# Verify Ubuntu ISO creation
- name: verify Ubuntu ISO
run: |
ls -lrt images/Dappnode-ubuntu-*.iso