From 64271ac42996d4e297c107bbc346fb347ad14436 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 26 Aug 2026 10:39:42 +0200 Subject: [PATCH] Add FreeBSD build and test job using freebsd-vm action --- .github/workflows/build.yml | 14 +++++++++++++- raid/test/Makefile | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9854859..6ded7dc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,4 +70,16 @@ jobs: - run: autoreconf -i - run: ./configure --enable-warning-as-error - run: make all dist check - + build-freebsd: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: vmactions/freebsd-vm@v1 + with: + usesh: true + prepare: | + pkg install -y autoconf automake gmake + run: | + autoreconf -i + ./configure --enable-warning-as-error MAKE=gmake + gmake all dist check diff --git a/raid/test/Makefile b/raid/test/Makefile index 0471ad3f..6ed8746a 100644 --- a/raid/test/Makefile +++ b/raid/test/Makefile @@ -28,8 +28,8 @@ SDE = sde else SDE = sde64 endif -CC = gcc -LD = ld +CC ?= cc +LD ?= ld CFLAGS = -I.. -Wall -Wextra -g ifeq ($(COVERAGE),) CFLAGS += -O2