-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (68 loc) · 1.86 KB
/
ci-windows.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
name: ci-windows
on:
push:
paths:
- '**'
- '!COPYING'
- '!COPYING-asm'
- '!INSTALL'
- '!**.md'
- '!.clang*'
- '!.gitignore'
- '!.gitattributes'
- '!.github/workflows/*'
- '.github/workflows/ci-windows.yml'
pull_request:
paths:
- '**'
- '!COPYING'
- '!COPYING-asm'
- '!INSTALL'
- '!**.md'
- '!.clang*'
- '!.gitignore'
- '!.gitattributes'
- '!.github/workflows/*'
- '.github/workflows/ci-windows.yml'
jobs:
ci-windows:
runs-on: windows-latest
strategy:
matrix:
# generator: [make, msys, vs2019]
generator: [make, msys]
architecture: [i686, x86_64]
include:
- generator: make
cmake_generator: "Unix Makefiles"
- generator: msys
cmake_generator: "MSYS Makefiles"
# - generator: vs2019
# cmake_generator: "Visual Studio 16 2019"
- architecture: i686
msystem: MINGW32
arch: i686
- architecture: x86_64
msystem: MINGW64
arch: x86_64
defaults:
run:
shell: msys2 {0}
steps:
- name: Install dependencies
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
install:
base-devel git
mingw-w64-${{ matrix.arch }}-toolchain mingw-w64-${{ matrix.arch }}-binutils
mingw-w64-${{ matrix.arch }}-ntldd mingw-w64-${{ matrix.arch }}-boost
mingw-w64-${{ matrix.arch }}-cmake
- name: Checkout code
uses: actions/checkout@master
- name: Configure
run: |
cmake -S . -B build -G "${{ matrix.cmake_generator }}"
- name: Build
run: |
cmake --build build -j2