-
-
Notifications
You must be signed in to change notification settings - Fork 396
54 lines (47 loc) · 1.63 KB
/
mingw_msys2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: MingW (Msys2)
on:
pull_request:
branches:
- dev
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, kind: static, arch: x86_64, prefix: /mingw64 },
{ msystem: MINGW64, kind: shared, arch: x86_64, prefix: /mingw64 },
{ msystem: MINGW32, kind: static, arch: i686, prefix: /mingw32 },
{ msystem: MINGW32, kind: shared, arch: i686, prefix: /mingw32 }
]
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-MSYS2_MINGW-${{ matrix.msystem }}-${{ matrix.kind }}-${{ matrix.arch }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
install: git base-devel unzip p7zip mingw-w64-${{ matrix.arch }}-toolchain mingw-w64-${{ matrix.arch }}-gcc-fortran
update: true
- name: Prepare
shell: msys2 {0}
run: |
git clone https://github.com/xmake-io/xmake.git --recurse-submodules -b master
cd xmake
./configure
make -j4
make install PREFIX=${{ matrix.prefix }}
xmake --version
cd ..
git reset --hard HEAD
git clean -fdx
- name: Tests
shell: msys2 {0}
run: |
if [ "${{ matrix.arch }}" == "x86_64" ]; then
xmake l ./scripts/test.lua -vD -p mingw -a x86_64 -k ${{ matrix.kind }}
else
xmake l ./scripts/test.lua -vD -p mingw -a i386 -k ${{ matrix.kind }}
fi