Marko/sdk refactor #575
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Releaser Binaries and WASM | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
workflow_dispatch: | |
jobs: | |
build_binaries: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- command: ENGINE=podman SCRIPT_LOC=./scripts/workflows/releaser_wasm.sh ./scripts/workflows/run.sh | |
- command: ENGINE=podman DISTRO=ubuntu-2004 ZIP=1 ./scripts/binaries/build.sh | |
- command: ENGINE=podman DISTRO=ubuntu-2204 ZIP=1 ./scripts/binaries/build.sh | |
- command: ENGINE=podman DISTRO=ubuntu-2404 ZIP=1 ./scripts/binaries/build.sh | |
- command: ENGINE=podman DISTRO=fedora-39 ZIP=1 ./scripts/binaries/build.sh | |
- command: ENGINE=podman DISTRO=fedora-40 ZIP=1 ./scripts/binaries/build.sh | |
- command: ENGINE=podman DISTRO=debian-11 ZIP=1 ./scripts/binaries/build.sh | |
- command: ENGINE=podman DISTRO=debian-12 ZIP=1 ./scripts/binaries/build.sh | |
- command: ENGINE=podman DISTRO=arch ZIP=1 ./scripts/binaries/build.sh | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
tool-cache: true | |
- name: install podman | |
run: sudo apt-get update && sudo apt install podman -y | |
- uses: nick-fields/retry@v3 | |
with: | |
timeout_minutes: 60 | |
max_attempts: 2 | |
command: ${{ matrix.command }} | |
arm64_ubuntu_2004: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
tool-cache: true | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.x' | |
- name: install cargo deps and build avail | |
shell: bash | |
run: | | |
curl https://sh.rustup.rs -sSf | sh -s -- -y | |
source "$HOME/.cargo/env" && rustup show | |
rustup target add aarch64-unknown-linux-gnu | |
sudo apt-get update && sudo apt-get install -y musl-tools clang gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev libc6-dev-arm64-cross | |
env BINDGEN_EXTRA_CLANG_ARGS='--sysroot /usr/aarch64-linux-gnu' CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc cargo build --release --target=aarch64-unknown-linux-gnu -p avail-node | |
pushd target/aarch64-unknown-linux-gnu/release/ | |
tar -czf arm64-ubuntu-2004-avail-node.tar.gz avail-node | |
popd |