Skip to content

refactor!: rework rootfs to be based on Ubuntu 24.04 #52

refactor!: rework rootfs to be based on Ubuntu 24.04

refactor!: rework rootfs to be based on Ubuntu 24.04 #52

Workflow file for this run

name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install libarchive-tools
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential autoconf automake libarchive-dev libarchive-tools pandoc
# Building from source cause the provided debian package is for Debian Bookworm
- name: Download, build and install xgenext2fs
run: |
wget https://github.com/cartesi/genext2fs/archive/refs/tags/v1.5.6.tar.gz
echo "34bfc26a037def23b85b676912462a3d126a87ef15c66c212b3500650da44f9e v1.5.6.tar.gz" | sha256sum -c -
tar -xzf v1.5.6.tar.gz
cd genext2fs-1.5.6
./autogen.sh
./configure
make
sudo make install
rm -rf genext2fs-1.5.6 v1.5.6.tar.gz
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Buildx setup
uses: docker/setup-buildx-action@v3
- name: Build rootfs.ext2 artifact
run: make build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: |
rootfs.ext2
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
prerelease: true
files: rootfs.ext2
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}