From 350dc1d6fa64aa3a5e6ec3478498e70af408c356 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 21 Dec 2024 17:48:58 -0800 Subject: [PATCH] freebsd workflow --- .github/workflows/freebsd.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/freebsd.yml diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml new file mode 100644 index 000000000..b5d52750d --- /dev/null +++ b/.github/workflows/freebsd.yml @@ -0,0 +1,30 @@ +name: freebsd + +on: + push: + paths-ignore: ["docs/**", "**.adoc", "**.md"] + pull_request: + paths-ignore: ["docs/**", "**.adoc", "**.md"] + +jobs: + test: + runs-on: ubuntu-latest + name: A job to run test in FreeBSD + steps: + - uses: actions/checkout@v4 + - name: Test in FreeBSD + id: test + uses: vmactions/freebsd-vm@v1 + with: + usesh: true + prepare: | + pkg install -y curl + pkg install -y lang/gcc + pkg install -y devel/cmake + pkg install -y devel/ninja + run: | + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja -DNNG_ENABLE_TOOLS=OFF .. + ninja build + ninja test