From 9c8ec510a01064ab937ed3d3a5c12e9fb23f20fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=81LI=20G=C3=A1bor=20J=C3=A1nos?= Date: Sun, 29 Sep 2024 11:01:44 +0200 Subject: [PATCH] Introduce CI support for build checks. Utilize GitHub actions to verify the contents of the repository. This is implemented through a test matrix of 13.4 and 14.1 releases where each of the ports are tested for fetch, checksum, build, package list, installation, and deinstallation issues. --- .github/workflows/checks.yml | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..f109bf0 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,49 @@ +name: Build Checks +on: [push] + +jobs: + checks: + strategy: + matrix: + version: ["13.4", "14.1"] + runs-on: ubuntu-latest + name: Continuous Integration + steps: + - uses: actions/checkout@v4 + - name: "FreeBSD ${{ matrix.version }}" + id: port_checks + uses: vmactions/freebsd-vm@v1 + with: + release: "${{ matrix.version }}" + usesh: true + prepare: | + pkg install -q -y gitup portconfig + pkg install -q -y gtar patchelf squashfs-tools-ng grub2-bhyve socat + gitup ports -v0 + + run: | + set -exu + kldload linux64 + mkdir -p /compat/linux + + make -C net/wifibox-alpine checksum + make -C net/wifibox-alpine + make -C net/wifibox-alpine check-plist + make -C net/wifibox-alpine install + make -C net/wifibox-alpine clean + + make -C net/wifibox-core checksum + make -C net/wifibox-core + make -C net/wifibox-core check-plist + make -C net/wifibox-core install + make -C net/wifibox-core clean + + make -C net/wifibox checksum + make -C net/wifibox + make -C net/wifibox check-plist + make -C net/wifibox install + make -C net/wifibox clean + + make -C net/wifibox deinstall + make -C net/wifibox-core deinstall + make -C net/wifibox-alpine deinstall