From ac4a912c57c25829aa9ee6f3423e7f58b5ff1e01 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 12 Dec 2023 21:29:17 +0100 Subject: [PATCH] Add FreeBSD CI test --- .github/workflows/freebsd.yml | 38 +++++++++++++++++++++++++++++++++++ configure.ac | 4 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/freebsd.yml diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml new file mode 100644 index 00000000..07456194 --- /dev/null +++ b/.github/workflows/freebsd.yml @@ -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 diff --git a/configure.ac b/configure.ac index b436a9a6..3f25fa02 100644 --- a/configure.ac +++ b/configure.ac @@ -76,8 +76,8 @@ dnl (this is somewhat a religious problem) dnl -------------------------------------- dnl if test "`$CPP -v < /dev/null 2>&1 | grep '/usr/local/include' 2>&1`" = ""; then - CPPFLAGS="$CPPFLAGS -I/usr/local/include" - LDFLAGS="$LDFLAGS -L/usr/local/lib" + AX_CPPFLAGS="$AX_CPPFLAGS -I/usr/local/include" + AX_LDFLAGS="$AX_LDFLAGS -L/usr/local/lib" fi dnl ------------------------------------