xref: /Universal-ctags/.github/workflows/testing-mac.yml (revision 6a8d5b709af994ff278390eed2a62d718f05a409)
1name: run units target on MacOS
2
3on:
4  push:
5    branches: [ master ]
6  pull_request:
7    branches: [ master ]
8
9jobs:
10  testing:
11
12    strategy:
13      matrix:
14        os: [macos-11, macos-10.15]
15        compiler: [gcc, clang]
16
17    runs-on: ${{ matrix.os }}
18
19    env:
20      CC: ${{ matrix.compiler }}
21      BUILDDIR: ${{ matrix.os }}-${{ matrix.compiler }}
22
23    steps:
24    - uses: actions/checkout@v2
25    - name: update package information
26      run: brew update
27    - name: install tools and libraries
28      run: |
29        brew upgrade python@3.9 || brew link --overwrite python@3.9
30        brew install automake pkg-config bash libxml2 jansson libyaml gdb docutils pcre2
31    - name: autogen.sh
32      run: ./autogen.sh
33    - name: report the version of cc
34      run: ${{ matrix.compiler }} --version
35    - name: report the version of make
36      run: make --version
37    - name: configure
38      run: |
39        mkdir -p ${{ matrix.os }}-"$CC"
40        (
41          cd $BUILDDIR
42          ../configure --enable-debugging --enable-iconv
43        )
44    - name: make
45      run: make -C $BUILDDIR -j2
46    - name: report features
47      run: |
48        (
49          cd $BUILDDIR
50          ./ctags --list-features
51        )
52    - name: make check
53      run: make -C $BUILDDIR check
54    - name: make roundtrip
55      run: make -C $BUILDDIR roundtrip
56