Add FreeBSD build and test job using freebsd-vm action

This commit is contained in:
Andrea Mazzoleni 2026-08-26 10:39:42 +02:00
parent 8396d3aaa1
commit 64271ac429
2 changed files with 15 additions and 3 deletions

View file

@ -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

View file

@ -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