-
Notifications
You must be signed in to change notification settings - Fork 51
62 lines (55 loc) · 1.72 KB
/
mingw.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
name: mingw
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: '16 0 * * 3,6' # <https://crontab.guru/#16_0_*_*_3,6> - "At 00:16 on Wednesday and Saturday."
jobs:
MinGW:
# Pinned windows version due to:
# https://github.com/egor-tensin/setup-mingw/issues/6
# if: false # Disable this platform temporarily
runs-on: windows-2022
env:
BUILD_PATH: build_space
steps:
- uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: ./.github/actions/setup-conan
- name: install boost
run: |
${boostroot} = "${env:GITHUB_WORKSPACE}\boost_install"
conan install boost/1.72.0@ -o boost:header_only=True -g deploy --install-folder ${boostroot}
echo "BOOST_ROOT=${boostroot}\boost" >> ${env:GITHUB_ENV}
# See uses: https://github.com/search?q=egor-tensin+setup-mingw+path%3A%2F.github%2Fworkflows%2F+extension%3Ayml&type=code
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2 # https://github.com/marketplace/actions/install-mingw
with:
platform: x64
version: 12.2.0
- name: Configure
shell: cmd
run: |
pwd
mkdir cmake-build
cd cmake-build
cmake --version
REM Release gives 'File too big' errors
cmake -G "MinGW Makefiles" .. -DCMAKE_BUILD_TYPE=Release
- name: Build
shell: cmd
run: |
cd cmake-build
cmake --build . --parallel 4
- name: Test
shell: cmd
run: |
cd cmake-build
ctest --verbose --output-on-failure -C Release