-
Notifications
You must be signed in to change notification settings - Fork 8
78 lines (68 loc) · 1.91 KB
/
Copy pathwindows.yml
File metadata and controls
78 lines (68 loc) · 1.91 KB
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
name: windows
on:
workflow_dispatch:
push:
paths:
- 'CMakeLists.txt'
- 'dap/**'
- 'dbgcli/**'
- 'tests/**'
- '.github/workflows/windows.yml'
pull_request:
paths:
- 'CMakeLists.txt'
- 'dap/**'
- 'dbgcli/**'
- 'tests/**'
- '.github/workflows/windows.yml'
jobs:
windows:
runs-on: windows-latest
steps:
# WxWidgets
- name: Checkout
uses: actions/checkout@v4
with:
repository: wxWidgets/wxWidgets
path: wxWidgets
ref: v3.2.4
submodules: recursive
- name: build and install wxWidgets
run: |
mkdir wxWidgets/build-release
cd wxWidgets/build-release
cmake .. -DCMAKE_BUILD_TYPE=Release -DwxBUILD_DEBUG_LEVEL=1 -DwxBUILD_MONOLITHIC=0 -DwxBUILD_SAMPLES=SOME -DwxUSE_STL=1
cmake --build . --config Release && cmake --build . -t install
# wxdap
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: build wxdap
run: |
mkdir build-release
cd build-release
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=1
cmake --build . --config Release
# Upload artefact
- name: artifact
uses: actions/upload-artifact@v4
with:
name: codelite
path: |
build-release/dap/Release/**.*
build-release/dbgcli/Release/**.*
build-release/tests/Release/**.*
- name: artifact # Cannot be with above artifact as no common path :-(
uses: actions/upload-artifact@v4
with:
name: wxwidgets
path: |
c:/Program Files (x86)/wxWidgets/**/*
#- name: test # DLL issue?
# shell: bash
# run: |
# cd build-release
# cp dap/Release/dapcxx.dll tests/Release/
# cp "/c/Program Files (x86)/wxWidgets/lib/vc_x64_dll/*.dll" tests/Release/
# ctest -C Release --output-on-failure