-
Notifications
You must be signed in to change notification settings - Fork 0
/
testing-workflow.yml
75 lines (60 loc) · 1.5 KB
/
testing-workflow.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: MSYS2 Testing
on:
push:
pull_request:
jobs:
win-makepkg:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { msystem: MINGW64, arch: x86_64 }
- { msystem: MINGW32, arch: i686 }
name: ${{ matrix.msystem }} | ${{ matrix.arch }} | makepkg
defaults:
run:
shell: msys2 {0}
steps:
- run: git config --global core.autocrlf input
shell: bash
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: true
install: >
base-devel
mingw-w64-${{ matrix.arch }}-toolchain
- name: Build
run: |
cd msys2
makepkg-mingw --noconfirm --noprogressbar -sCLf
env:
MINGW_ARCH: ${{ matrix.msystem }}
- uses: actions/upload-artifact@v2
with:
path: msys2/*.zst
win-test:
needs: win-makepkg
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { msystem: MINGW64, arch: x86_64 }
- { msystem: MINGW32, arch: i686 }
name: ${{ matrix.msystem }} | ${{ matrix.arch }} | test
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: true
- uses: actions/download-artifact@v2
- run: pacman -U --noconfirm --noprogressbar artifact/*.zst
- run: TOOL --help