-
Notifications
You must be signed in to change notification settings - Fork 46
51 lines (43 loc) · 1.22 KB
/
build-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
# Copyright (c) 2021-2024 Morwenn
# SPDX-License-Identifier: MIT
name: MinGW-w64 Builds
on:
push:
paths:
- '.github/workflows/build-mingw.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'include/gfx/timsort.hpp'
- 'tests/*'
pull_request:
paths:
- '.github/workflows/build-mingw.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'include/gfx/timsort.hpp'
- 'tests/*'
jobs:
build:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Configure CMake
shell: pwsh
working-directory: ${{runner.workspace}}
run: |
cmake -H${{github.event.repository.name}} -Bbuild `
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} `
-G"MinGW Makefiles" `
-DBUILD_BENCHMARKS=ON
- name: Build the test suite
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build_type}} -j 2
- name: Run the test suite
env:
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}}