Skip to content

Introduce builder-hex0-aarch64-stage1-raspi3b.{S,hex0,hex2} #14

Introduce builder-hex0-aarch64-stage1-raspi3b.{S,hex0,hex2}

Introduce builder-hex0-aarch64-stage1-raspi3b.{S,hex0,hex2} #14

Workflow file for this run

# SPDX-FileCopyrightText: 2026 Alexandre Gomes Gaigalas <alganet@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
name: Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
env:
QEMU_VERSION: "10.1.4"
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
arch: [riscv64, aarch64]
steps:
- uses: actions/checkout@v5
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y libglib2.0-dev libpixman-1-dev libslirp-dev \
ninja-build flex python3-venv
- name: Cache QEMU
id: cache-qemu
uses: actions/cache@v4
with:
path: qemu-local
key: qemu-riscv64-aarch64-${{ env.QEMU_VERSION }}
- name: Build QEMU (riscv64 + aarch64)
if: steps.cache-qemu.outputs.cache-hit != 'true'
run: |
pip install meson
git clone --depth 1 --branch v${{ env.QEMU_VERSION }} \
https://gitlab.com/qemu-project/qemu.git /tmp/qemu-build
cd /tmp/qemu-build
./configure --target-list=riscv64-softmmu,aarch64-softmmu \
--prefix=${{ github.workspace }}/qemu-local \
--disable-docs --disable-gtk --disable-sdl \
--disable-opengl --disable-virglrenderer
make -j$(nproc)
make install
rm -rf /tmp/qemu-build
- name: Verify QEMU
run: |
qemu-local/bin/qemu-system-riscv64 --version
qemu-local/bin/qemu-system-aarch64 --version
- name: Build
run: make clean ${{ matrix.arch }}
- name: Test
run: QEMU=qemu-local/bin/qemu-system-${{ matrix.arch }} make test-${{ matrix.arch }}