xref: /Universal-ctags/.github/workflows/testing-openbsd.yml (revision 4e9f5df52498777d46360cb610f63d7af1f4b771)
1name: run units target on OpenBSD
2
3on:
4  push:
5    branches: [ master ]
6  pull_request:
7    branches: [ master ]
8
9jobs:
10  testing:
11    runs-on: macos-10.15
12
13    steps:
14    - uses: actions/checkout@v2
15
16    - uses: leleliu008/github-actions-vagrant@v2
17      with:
18        mem: 2048
19        box: generic/openbsd6
20        log: debug
21        run: |
22          export AUTOCONF_VERSION=2.69
23          export AUTOMAKE_VERSION=1.16
24
25          export CFLAGS='-I/usr/local/include -L/usr/local/lib'
26
27          if [ ! -f /usr/local/lib/libiconv.so ] ; then
28            sudo ln -s /usr/local/lib/libiconv.so.* /usr/local/lib/libiconv.so
29          fi
30
31          run sudo pkg_add automake-1.16.3 gmake
32
33          run cc --version
34
35          run ./autogen.sh
36          run ./configure --prefix=/usr
37          run gmake
38          run sudo gmake install
39          run file /usr/bin/ctags
40          run ctags --version
41          # bugs to fix
42          #run make check CI=gha+vagrant+openbsd
43          run gmake roundtrip CI=gha+vagrant+openbsd
44