-
Notifications
You must be signed in to change notification settings - Fork 209
110 lines (103 loc) · 3.51 KB
/
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: windows
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_windows_vs16_cmake:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/setup-msbuild@v1.0.0
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: echo MSBuild
run: msbuild -version
- name: mkdir build
run: mkdir build
- name: cmake configure
working-directory: build
run: cmake -G "Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX=%P% -DCMAKE_BUILD_TYPE=Debug ..
- name: vs build
working-directory: build
run: msbuild /p:Platform=x64 "ALL_BUILD.vcxproj"
- name: vs test
working-directory: build
run: msbuild /p:Platform=x64 "RUN_TESTS.vcxproj"
build_windows_msvc_cmake:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: mkdir build
run: mkdir build
- name: cmake configure
working-directory: build
run: cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%P% -DCMAKE_BUILD_TYPE=Debug ..
- name: nmake
working-directory: build
run: nmake
- name: nmake test
working-directory: build
run: nmake test VERBOSE=1 CTEST_OUTPUT_ON_FAILURE=TRUE
build_windows_mingw32_cmake:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: mkdir build
run: mkdir build
- name: cmake configure
working-directory: build
run: cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=%P% -DCMAKE_BUILD_TYPE=Debug ..
- name: mingw32-make
working-directory: build
run: mingw32-make
# TODO(#259): The floating point tests currently fail because the expected
# formatting for some floating values is wrong. When Check's tests are fixed
# to be more flexible enable this.
# - name: test
# working-directory: build
# run: tests\check_check.exe
build_windows_mingw64msys_autotools:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: add mingw to path
run: echo "::add-path::C:\msys64\mingw64\bin"
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: add mingw to path
run: echo "::add-path::C:\msys64\usr\bin"
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: autoreconf
run: bash -c "autoreconf -i"
- name: configure
run: bash -c "./configure"
- name: make
run: bash -c "make"
- name: test
run: bash -c "tests/check_check"
build_windows_msys2_autotools:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: autoreconf
run: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -full-path -here -c "autoreconf -i"
- name: configure
run: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -full-path -here -c "./configure"
- name: make
run: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -full-path -here -c "make"
- name: test
run: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -full-path -here -c "tests/check_check"
build_windows_msys2_cmake:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: cmake
run: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -full-path -here -c "cmake -G 'MSYS Makefiles' ."
- name: make
run: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -full-path -here -c "make"
- name: test
run: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -full-path -here -c "tests/check_check"