-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.41 KB
/
build.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
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build-msys2:
runs-on: windows-latest
strategy:
matrix:
configuration: [Debug, Release]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: clang64
install: >-
git
mingw-w64-clang-x86_64-boost
mingw-w64-clang-x86_64-clang
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-compiler-rt
mingw-w64-clang-x86_64-glib2
mingw-w64-clang-x86_64-gtkmm3
mingw-w64-clang-x86_64-lld
mingw-w64-clang-x86_64-ninja
mingw-w64-clang-x86_64-openssl
mingw-w64-clang-x86_64-python
mingw-w64-clang-x86_64-python-pip
mingw-w64-clang-x86_64-spdlog
tar
xz
- uses: actions/setup-python@v3
with:
python-version: 3.11
- shell: msys2 {0}
run: |
mkdir _build _deploy
export MINGW_ROOT=/c/msys64
export MSYSTEM=CLANG64
cmake -GNinja -B_build -H. -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/msys2.cmake -DCMAKE_INSTALL_PREFIX=_deploy -DUNFOLD_WITH_TESTS=ON -DCMAKE_BUILD_TYPE=${{ matrix.configuration }}
ninja -C _build -v install
cd _build
ctest -V