-
Notifications
You must be signed in to change notification settings - Fork 10
71 lines (63 loc) · 1.53 KB
/
build-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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build with MSYS2
on:
push:
branches:
- master
paths-ignore:
- '.github/workflows/build-msvs2022.yml'
- '.github/workflows/build-online-docs.yml'
- 'docs/**'
- 'util/**'
- 'ReadMe.md'
pull_request:
branches:
- master
paths-ignore:
- '.github/workflows/build-msvs2022.yml'
- '.github/workflows/build-online-docs.yml'
- 'docs/**'
- 'util/**'
- 'ReadMe.md'
workflow_dispatch:
permissions:
contents: read
env:
wxMSW_VER: 3.2
BUILD_DIR_PATH: build_cmake
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { sys: mingw32 }
- { sys: ucrt64 }
- { sys: clang64 }
name: ${{ matrix.sys }}
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
wxwidgets${{ env.wxMSW_VER }}-msw:p
wxwidgets${{ env.wxMSW_VER }}-msw-cb_headers:p
- name: Configure wxAutoExcel
run: |
cmake -G Ninja -B $BUILD_DIR_PATH -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
- name: Build wxAutoExcel
run: |
cmake --build $BUILD_DIR_PATH