CI: cross-compilation; build packages on every push.
[tinc] / .builds / freebsd.yml
1 image: freebsd/13.x
2
3 packages:
4   - autotools
5   - openssl
6   - lzo2
7   - liblz4
8   - ncurses
9   - miniupnpc
10   - readline
11   - texinfo
12   - vde2
13   - libgcrypt
14   - llvm12
15   - py38-pip
16
17 environment:
18   CFLAGS: -I/usr/local/include -L/usr/local/lib
19
20 sources:
21   - https://github.com/gsliepen/tinc
22
23 tasks:
24   - configure: |
25       cd tinc
26       autoreconf -fsi
27       ./configure --enable-miniupnpc --enable-vde
28
29   - build: |
30       cd tinc
31       make -j$(sysctl -n hw.ncpu)
32
33   - test: |
34       cd tinc
35       make check-recursive VERBOSE=1
36
37   - lint: |
38       mkdir -p ~/.local/bin
39       ln -f -s "$(which clang-tidy12)" ~/.local/bin/clang-tidy
40       pip install --user compiledb
41       cd tinc
42       export PATH=$PATH:$HOME/.local/bin
43       sh .ci/tidy/run.sh