summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Wiberg <troglobit@gmail.com>2022-06-02 07:06:29 +0200
committerGitHub <noreply@github.com>2022-06-02 07:06:29 +0200
commit7a16d5d2544b0d6624b95cf6f10553ee38bc9f70 (patch)
tree4d3c260cd646a5b963f7c09bc1722d7c72a4a675
parent4bf671df0c0abf56c8150abe9b3b64a17080f96d (diff)
parente13d5b0d3fe96a40444ed42f63bdd4b6ae3fafda (diff)
downloadlibnet-7a16d5d2544b0d6624b95cf6f10553ee38bc9f70.tar.gz
Merge pull request #144 from ivalery111/ci-freebsd-build
workflow: add freebsd-13 gcc/clang build
-rw-r--r--.github/workflows/build-freebsd.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/build-freebsd.yml b/.github/workflows/build-freebsd.yml
new file mode 100644
index 0000000..6ee94e4
--- /dev/null
+++ b/.github/workflows/build-freebsd.yml
@@ -0,0 +1,40 @@
+name: FreeBSD Builder
+
+on:
+ push:
+ branches:
+ - '*'
+
+env:
+ # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
+ MAKEFLAGS: -j3
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ name: [ freebsd-13-gcc, freebsd-13-clang ]
+ include:
+ - name: freebsd-13-gcc
+ os: macos-10.15
+ cc: gcc
+ - name: freebsd-13-clang
+ os: macos-10.15
+ cc: clang
+
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Build
+ uses: vmactions/freebsd-vm@v0.1.5
+ with:
+ prepare: |
+ pkg install -y autotools gcc llvm doxygen tree
+ run: |
+ ./autogen.sh
+ ./configure --prefix=/usr CC=${{ matrix.cc }}
+
+ make V=1
+ make install-strip DESTDIR=/tmp
+ tree /tmp/usr