summaryrefslogtreecommitdiff
path: root/.github/workflows/build-freebsd.yml
blob: 54b9636b683258392e7dd76cb82473829afd304a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: FreeBSD Builder

on: [push, pull_request]

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