Skip to content

Commit

Permalink
Add FreeBSD CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
rodarima committed Dec 23, 2023
1 parent 80732c6 commit d8e8378
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test

on: [push]

jobs:
test:
runs-on: ubuntu-latest
name: A job to run test in FreeBSD
env:
MYTOKEN : "lala"
MYTOKEN2: "value2"
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
envs: 'MYTOKEN MYTOKEN2'
usesh: true
prepare: |
set -x
pkg install -y curl automake fltk
run: |
set -x
pwd
freebsd-version
./autogen.sh
./configure
make
make check
make distcheck
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ dnl -----------------------------------------------------------------
dnl
BASE_CUR_WORKING_DIR=`pwd`

dnl ------------------------------------------
dnl Add /usr/include before /usr/include/local
dnl ------------------------------------------
dnl
CPPFLAGS="$CPPFLAGS -I/usr/include"
LDFLAGS="$LDFLAGS -L/usr/lib"

dnl --------------------------------------
dnl Check whether to add /usr/local or not
dnl (this is somewhat a religious problem)
Expand Down

0 comments on commit d8e8378

Please sign in to comment.