From fa1ac300005530d4a9e816234df50abeaf6ddcd4 Mon Sep 17 00:00:00 2001 From: marco <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 26 Aug 2025 19:10:48 +0200 Subject: [PATCH] ci: Add macos and freebsd task Also, remove unused python from install. --- .github/workflows/ci.yml | 41 +++++++++++++++++++++++++++++++++++++++- ci/configs/freebsd.bash | 5 +++++ ci/configs/macos.bash | 5 +++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 ci/configs/freebsd.bash create mode 100644 ci/configs/macos.bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55bab53..87b1706 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: uses: vmactions/openbsd-vm@v1 with: prepare: | - pkg_add -v cmake ninja git python bash + pkg_add -v cmake ninja git bash run: | git clone --depth=1 https://codeberg.org/OpenBSD/ports.git /usr/ports sync: 'rsync' @@ -34,6 +34,45 @@ jobs: cd ${{ github.workspace }} CI_CONFIG="ci/configs/openbsd.bash" bash ci/scripts/ci.sh + build-freebsd: + runs-on: ubuntu-latest + name: build • freebsd + defaults: + run: + shell: freebsd {0} + steps: + - uses: actions/checkout@v5 + + - name: Start FreeBSD VM + uses: vmactions/freebsd-vm@v1 + with: + prepare: | + pkg install -y cmake ninja bash capnproto + sync: 'rsync' + copyback: false + + - name: Run CI script + run: | + cd ${{ github.workspace }} + CI_CONFIG="ci/configs/freebsd.bash" bash ci/scripts/ci.sh + + build-macos: + runs-on: macos-latest + name: build • macos + + steps: + - uses: actions/checkout@v5 + + - name: Install dependencies + env: + HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 + run: | + brew install --quiet ninja capnp + + - name: Run CI script + run: | + CI_CONFIG="ci/configs/macos.bash" bash ci/scripts/ci.sh + build: runs-on: ubuntu-latest diff --git a/ci/configs/freebsd.bash b/ci/configs/freebsd.bash new file mode 100644 index 0000000..017f218 --- /dev/null +++ b/ci/configs/freebsd.bash @@ -0,0 +1,5 @@ +CI_DESC="CI config for FreeBSD" +CI_DIR=build-freebsd +export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter" +CMAKE_ARGS=(-G Ninja) +BUILD_ARGS=(-k 0) diff --git a/ci/configs/macos.bash b/ci/configs/macos.bash new file mode 100644 index 0000000..a444bac --- /dev/null +++ b/ci/configs/macos.bash @@ -0,0 +1,5 @@ +CI_DESC="CI config for macOS" +CI_DIR=build-macos +export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter" +CMAKE_ARGS=(-G Ninja) +BUILD_ARGS=(-k 0)