xref: /freebsd/sys/contrib/openzfs/.github/workflows/zfs-arm.yml (revision d8fbbd371ca11d9ad4b29b9d3a316885a5da0b15)
1name: zfs-arm
2
3on:
4  push:
5  pull_request:
6  workflow_dispatch:
7
8jobs:
9  zfs-arm:
10    name: ZFS ARM build
11    runs-on: ubuntu-24.04-arm
12    steps:
13    - uses: actions/checkout@v6
14      with:
15        fetch-depth: 0
16        ref: ${{ github.event.pull_request.head.sha }}
17    - name: Install dependencies
18      timeout-minutes: 20
19      run: |
20        sudo apt-get -y remove firefox || true
21        .github/workflows/scripts/qemu-3-deps-vm.sh ubuntu24
22
23        # We're running the VM scripts locally on the runner, so need to fix
24        # up hostnames to make it work.
25        for ((i=0; i<=3; i++)); do
26          echo "127.0.0.1 vm$i" | sudo tee -a /etc/hosts
27        done
28    - name: Build modules
29      timeout-minutes: 30
30      run: |
31        .github/workflows/scripts/qemu-4-build-vm.sh --enable-debug ubuntu24
32
33        # Quick sanity test since we're not running the full ZTS
34        sudo modprobe zfs
35        sudo dmesg | grep -i zfs
36        truncate -s 100M file
37        sudo zpool create tank ./file
38        zpool status
39
40        echo "Built ZFS successfully on ARM"
41