forked from wxFormBuilder/wxFormBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (101 loc) · 2.78 KB
/
windows.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Windows
on:
push:
branches-ignore:
- '**/linux/**'
- '**/macos/**'
paths-ignore:
- '.github/workflows/sources.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'
- 'docs/**'
- 'install/linux/**'
- 'install/macosx/**'
- 'scripts/premake/**'
- '*.md'
- '*.yml'
- '.clang-format'
- 'create_build_files*'
- 'meson.build'
pull_request:
paths-ignore:
- '.github/workflows/sources.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'
- 'docs/**'
- 'install/linux/**'
- 'install/macosx/**'
- 'scripts/premake/**'
- '*.md'
- '*.yml'
- '.clang-format'
- 'create_build_files*'
- 'meson.build'
jobs:
installer:
name: Installer
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { sys: mingw32, env: i686 }
- { sys: mingw64, env: x86_64 }
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Fetch tags
shell: cmd
run: |
git fetch --prune --depth=1 --no-recurse-submodules
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
release: false
update: true
install: >-
mingw-w64-${{ matrix.env }}-toolchain
mingw-w64-${{ matrix.env }}-cmake
mingw-w64-${{ matrix.env }}-make
mingw-w64-${{ matrix.env }}-wxWidgets3.1
mingw-w64-${{ matrix.env }}-boost
base-devel
git
- name: Create build system
shell: msys2 {0}
run: |
cmake -S . -B _build -G "MSYS Makefiles" --install-prefix "$PWD/_install" -DCMAKE_BUILD_TYPE=Release
- name: Package build system
if: ${{ contains(github.ref, '/build/') }}
shell: cmd
run: |
7z a -tzip -r -bb1 wxFormBuilder-Windows-build.zip _build
- name: Build
shell: msys2 {0}
run: |
cmake --build _build --config Release -j `nproc`
- name: Test stage
shell: msys2 {0}
run: |
_build\\stage\\wxFormBuilder.exe -v
_build\\stage\\wxFormBuilder.exe -g wxfbTest\\wxfbTest.fbp
- name: Install
shell: msys2 {0}
run: |
cmake --install _build --config Release --strip
- name: Test install
shell: cmd
run: |
_install\\wxFormBuilder.exe -v
_install\\wxFormBuilder.exe -g wxfbTest\\wxfbTest.fbp
- name: Create installer
shell: cmd
run: |
ISCC.exe /DArch=${{ matrix.env }} /O. install\\windows\\wxFormBuilder.iss
- uses: actions/upload-artifact@v2
with:
name: Windows Installer ${{ matrix.env }}
path: |
wxFormBuilder-Windows-build.zip
wxFormBuilder-*.exe