-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.47 KB
/
msys2.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 MSYS2
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-msys2:
name: Building for x86_64-w64-mingw32 (${{ matrix.build_type }}) with ${{ matrix.compiler.c }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
compiler:
- c: gcc
cxx: g++
- c: clang
cxx: clang++
build_type:
- Release
- Debug
defaults:
run:
shell: msys2 {0}
env:
CC: ${{ matrix.compiler.c }}
CXX: ${{ matrix.compiler.cxx }}
steps:
- name: Setting up MSYS2
uses: msys2/setup-msys2@v2
with:
install: >-
base-devel
mingw-w64-x86_64-cmake
mingw-w64-x86_64-ninja
mingw-w64-x86_64-python-pip
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-clang
- uses: actions/checkout@v3
- run: exec python -m pip install --upgrade conan
- name: cache conan packages
uses: actions/cache@v2
with:
path: ~/.conan2/p
key: x86_64-w64-mingw32_${{ matrix.compiler.c }}_${{ matrix.build_type }}_conan
- run: exec conan profile detect
- run: exec conan install -u . --version "scm.$GITHUB_SHA" -u -b missing -s compiler.cppstd=20 -s build_type=${{ matrix.build_type }} -c tools.system.package_manager:mode=install
- run: exec conan build . --version "scm.$GITHUB_SHA" -s compiler.cppstd=20 -s build_type=${{ matrix.build_type }}