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 12, 2023
1 parent e1300db commit d94b1a2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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 mbedtls automake fltk
run: |
set -x
pwd
ls -lah
whoami
env
freebsd-version
ls -l /usr/local
ls -l /usr/local/include
./autogen.sh
./configure
cat config.log
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 @@ -70,6 +70,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 d94b1a2

Please sign in to comment.