diff options
author | Valery Ivanov <ivalery111@gmail.com> | 2022-06-01 19:00:16 +0300 |
---|---|---|
committer | Valery Ivanov <ivalery111@gmail.com> | 2022-06-01 19:44:03 +0300 |
commit | e13d5b0d3fe96a40444ed42f63bdd4b6ae3fafda (patch) | |
tree | a654ece8b0340522cfea80d2e1c442bdf51d7c6b /.github | |
parent | c78f381d2248f3115cc842ef83794eb40159a583 (diff) | |
download | libnet-e13d5b0d3fe96a40444ed42f63bdd4b6ae3fafda.tar.gz |
workflow: add freebsd-13 gcc/clang build
Signed-off-by: Valery Ivanov <ivalery111@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-freebsd.yml | 40 |
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 |