Implement new EVM chains (#717) #2534
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: "Build Packages" | |
on: push | |
jobs: | |
build_deb: | |
name: "Build ${{ matrix.os }} Package" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["debian-12", "ubuntu-22.04", "ubuntu-24.04"] | |
include: | |
- os: "debian-12" | |
make_target: "all-podman-debian-12" | |
artifact_name: "aleph-vm.debian-12.deb" | |
- os: "ubuntu-22.04" | |
make_target: "all-podman-ubuntu-2204" | |
artifact_name: "aleph-vm.ubuntu-22.04.deb" | |
- os: "ubuntu-24.04" | |
make_target: "all-podman-ubuntu-2404" | |
artifact_name: "aleph-vm.ubuntu-24.04.deb" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# Fetch the whole history for all tags and branches (required for aleph.__version__) | |
fetch-depth: 0 | |
- name: Initialize git submodules | |
run: git submodule init | |
- run: | | |
cd packaging && make ${{ matrix.make_target }} && cd .. | |
ls packaging/target | |
- name: Ensure that the relevant files are present in the package | |
run: | | |
dpkg --contents packaging/target/${{ matrix.artifact_name }} | grep /opt/kubo/ipfs | |
dpkg --contents packaging/target/${{ matrix.artifact_name }} | grep /opt/firecracker/firecracker | |
dpkg --contents packaging/target/${{ matrix.artifact_name }} | grep /opt/firecracker/jailer | |
dpkg --contents packaging/target/${{ matrix.artifact_name }} | grep /opt/firecracker/vmlinux.bin | |
dpkg --contents packaging/target/${{ matrix.artifact_name }} | grep /opt/sevctl | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.artifact_name }} | |
path: packaging/target/${{ matrix.artifact_name }} | |
build_rootfs: | |
name: "Build runtime aleph-${{ matrix.os }}-python" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: ["debian-12"] | |
include: | |
- os: "debian-12" | |
artifact_name: "aleph-debian-12-python.squashfs" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192 | |
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc | |
- run: | | |
sudo apt update | |
sudo apt install -y debootstrap | |
cd runtimes/aleph-${{ matrix.os }}-python && sudo ./create_disk_image.sh && cd ../.. | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.artifact_name }} | |
path: runtimes/aleph-${{ matrix.os }}-python/rootfs.squashfs | |
build_example_venv_volume: | |
name: "Build example squashfs volume using Docker" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- run: | | |
docker build -t aleph-vm-build-squashfs -f examples/volumes/Dockerfile examples/volumes | |
docker run --rm -v "$(pwd)":/mnt aleph-vm-build-squashfs | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: example-volume-venv.squashfs | |
path: volume-venv.squashfs |