Skip to content

ci: improve GHA workflows #177

ci: improve GHA workflows

ci: improve GHA workflows #177

Workflow file for this run

name: BSD
on:
pull_request:
branches:
- master
push:
branches:
- master
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: read
jobs:
freebsd:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Build
uses: vmactions/[email protected]
with:
# BSD make -j has a mandatory argument
# Linux make -j means infinite jobs
prepare: |
pkg install -y autoconf automake bison flex pkgconf devel/check check
run: |
set -e # exit on any failure below
./autogen.sh
# We need to use /usr/local/include/check.h
CFLAGS="-g -O2 -I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --with-check || exit 1
set -x
make -j $(nproc) radvd V=1 || exit 1
make -j $(nproc) radvdump V=1 || exit 1
make -j $(nproc) check_all V=1 || exit 1
make -j $(nproc) all V=1 || exit 1
make -j $(nproc) check V=1 || exit 1
make -j $(nproc) dist-xz V=1 || exit 1
make -j $(nproc) install V=1 || exit 1