Skip to content

Commit 4a6bca8

Browse files
authored
Merge pull request #38 from universal-ctags/masatake-patch-1
GitHub Actions: run test cases on msys2 and mingw
2 parents 32f4a95 + e2a4a43 commit 4a6bca8

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/msys2.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#
2+
# Derrived from .github/workflows/testing-msys2.yml of universal-ctags/ctags repo
3+
#
4+
name: run test cases on MSYS2
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
testing:
14+
runs-on: windows-latest
15+
16+
strategy:
17+
matrix:
18+
msystem: [MSYS, MINGW32, MINGW64]
19+
20+
defaults:
21+
run:
22+
shell: msys2 {0}
23+
24+
steps:
25+
- uses: msys2/setup-msys2@v2
26+
with:
27+
msystem: ${{ matrix.msystem }}
28+
update: true
29+
install: git make automake1.16 autoconf libtool
30+
31+
- if: matrix.msystem == 'MSYS'
32+
run: pacman -S --noconfirm gcc
33+
34+
- if: matrix.msystem == 'MINGW32'
35+
run: pacman -S --noconfirm mingw-w64-i686-toolchain
36+
37+
- if: matrix.msystem == 'MINGW64'
38+
run: pacman -S --noconfirm mingw-w64-x86_64-toolchain
39+
40+
- run: ln -s /usr/bin/automake-1.16 /usr/bin/automake
41+
- run: ln -s /usr/bin/aclocal-1.16 /usr/bin/aclocal
42+
43+
- run: git config --global core.autocrlf input
44+
shell: bash
45+
- uses: actions/checkout@v2
46+
47+
- run: ./autogen.sh
48+
- run: ./configure --prefix=/usr
49+
- run: make V=1
50+
- run: make check V=1

0 commit comments

Comments
 (0)