From e13d5b0d3fe96a40444ed42f63bdd4b6ae3fafda Mon Sep 17 00:00:00 2001 From: Valery Ivanov Date: Wed, 1 Jun 2022 19:00:16 +0300 Subject: workflow: add freebsd-13 gcc/clang build Signed-off-by: Valery Ivanov --- .github/workflows/build-freebsd.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build-freebsd.yml (limited to '.github') 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 -- cgit v1.2.1