-
Notifications
You must be signed in to change notification settings - Fork 111
39 lines (37 loc) · 1003 Bytes
/
bsd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
make -j $(nproc) all || exit 1
make -j $(nproc) check || exit 1
make -j $(nproc) dist-xz || exit 1
make -j $(nproc) install || exit 1