From 4d0e45f3fd3203024445e775cb616b22718dec5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Meigo=E2=84=A2=20Corporation?= <73817505+meigoc@users.noreply.github.com> Date: Tue, 14 Jul 2026 22:03:09 +0300 Subject: [PATCH] chore: add FreeBSD x86_64 CI build Build and test libapg on FreeBSD using a native FreeBSD virtual machine via cross-platform-actions/action. Dependencies are installed with pkg and the library is built and its test suite run natively; no cross compilation or sysroot staging is involved. The library needs no source changes on FreeBSD: the seccomp dependency is optional and drops out, libsodium is selected as the signing backend, and the install-script runner uses its existing non-Linux path. Record the change in the changelog under Unreleased. Contributes to #20. --- .github/workflows/ci.yml | 18 ++++++++++++++++++ CHANGELOG.md | 11 +++++++++++ 2 files changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0528ac0..446a533 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -283,3 +283,21 @@ jobs: --cross-file cross-mips64.txt \ --buildtype=release meson compile -C build-mips64el + + freebsd: + name: Build (FreeBSD x86_64) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build and test on FreeBSD + uses: cross-platform-actions/action@v1.3.0 + with: + operating_system: freebsd + architecture: x86-64 + version: '14.3' + run: | + sudo pkg install -y meson pkgconf ninja lmdb libarchive yyjson libsodium + meson setup build --buildtype=release + meson compile -C build + meson test -C build diff --git a/CHANGELOG.md b/CHANGELOG.md index 44ef8b5..6f5cda7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. +## [Unreleased] + +### Added + +- FreeBSD support: the library builds, links, and passes its test suite on + FreeBSD with the libsodium signing backend; no source changes are required + because the seccomp dependency is optional and the install-script runner + already has a non-Linux path +- CI job that builds and tests the library in a native FreeBSD x86_64 virtual + machine + ## [1.9.0] - 2026-06-22 ### Added