mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
CI: Add ARM builder
Do a ZFS build inside of an ARM runner. This only does a simple build, it does not run the test suite. The build runs on the runner itself rather than in a VM, since nesting is not supported on Github ARM runners. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #18343
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
name: zfs-arm
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
zfs-arm:
|
||||
name: ZFS ARM build
|
||||
runs-on: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: Install dependencies
|
||||
timeout-minutes: 20
|
||||
run: |
|
||||
sudo apt-get -y remove firefox || true
|
||||
.github/workflows/scripts/qemu-3-deps-vm.sh ubuntu24
|
||||
|
||||
# We're running the VM scripts locally on the runner, so need to fix
|
||||
# up hostnames to make it work.
|
||||
for ((i=0; i<=3; i++)); do
|
||||
echo "127.0.0.1 vm$i" | sudo tee -a /etc/hosts
|
||||
done
|
||||
- name: Build modules
|
||||
timeout-minutes: 30
|
||||
run: |
|
||||
.github/workflows/scripts/qemu-4-build-vm.sh --enable-debug ubuntu24
|
||||
|
||||
# Quick sanity test since we're not running the full ZTS
|
||||
sudo modprobe zfs
|
||||
sudo dmesg | grep -i zfs
|
||||
truncate -s 100M file
|
||||
sudo zpool create tank ./file
|
||||
zpool status
|
||||
|
||||
echo "Built ZFS successfully on ARM"
|
||||
Reference in New Issue
Block a user