Skip to content

Commit

Permalink
Introduce CI support for build checks.
Browse files Browse the repository at this point in the history
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 the `net/wifibox-alpine` and `net/wifibox-core` ports are
tested for build and package list issues.
  • Loading branch information
pgj committed Sep 29, 2024
1 parent 5daed4e commit ac892f5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 deinstall
make -C net/wifibox-alpine clean
make -C net/wifibox checksum
make -C net/wifibox
make -C net/wifibox-core check-plist
make -C net/wifibox-core install
make -C net/wifibox-core deinstall
make -C net/wifibox-core clean

0 comments on commit ac892f5

Please sign in to comment.