xref: /Universal-ctags/.github/workflows/testing-msys2.yml (revision 29fc8d6152e6354595fa3f8f820660e7505bb83f)
1name: run units target on MSYS2
2
3on:
4  push:
5    branches: [ master ]
6  pull_request:
7    branches: [ master ]
8
9jobs:
10  testing:
11    runs-on: windows-latest
12
13    strategy:
14      matrix:
15        msystem: [MSYS, MINGW32, MINGW64]
16
17    defaults:
18      run:
19        shell: msys2 {0}
20
21    steps:
22    - uses: msys2/setup-msys2@v2
23      with:
24        msystem: ${{ matrix.msystem }}
25        update: true
26        install: git make automake1.16 autoconf
27
28    - if:  matrix.msystem == 'MSYS'
29      run: pacman -S --noconfirm gcc libiconv-devel pkg-config python dos2unix
30
31    - if:  matrix.msystem == 'MINGW32'
32      run: pacman -S --noconfirm mingw-w64-i686-toolchain
33
34    - if:  matrix.msystem == 'MINGW64'
35      run: pacman -S --noconfirm mingw-w64-x86_64-toolchain
36
37    - run: ln -s /usr/bin/automake-1.16 /usr/bin/automake
38    - run: ln -s /usr/bin/aclocal-1.16  /usr/bin/aclocal
39
40    - run: git config --global core.autocrlf input
41      shell: bash
42    - uses: actions/checkout@v2
43
44    - run: ./autogen.sh
45    - run: ./configure --prefix=/usr
46    - run: make V=1
47    - run: make install
48    - run: file /usr/bin/ctags
49    - run: ctags --version
50
51    - run: make check V=1
52
53    # FAILED: "./readtags.exe" -t "/d/a/ctags2/ctags2/Units/parser-asciidoc.r/utf8-asciidoc.d/expected.tags" - "@Ѐ–��"
54    # The raw tag name was "@Ѐ–��"
55    - if:  matrix.msystem == 'MSYS'
56      run: make roundtrip
57