File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : windows
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - ' .github/workflows/windows.yml'
8+ - ' **.cpp'
9+ - ' **.h'
10+ - ' **.cmake'
11+ - ' CMakeLists.txt'
12+ pull_request :
13+ paths :
14+ - ' .github/workflows/windows.yml'
15+ - ' **.cpp'
16+ - ' **.h'
17+ - ' **.cmake'
18+ - ' CMakeLists.txt'
19+ jobs :
20+ windows :
21+ runs-on : windows-latest
22+ strategy :
23+ fail-fast : false
24+ matrix :
25+ wx-version : ['v3.2.6']
26+
27+ steps :
28+
29+ # WxWidgets
30+ - name : Checkout
31+ uses : actions/checkout@v4
32+ with :
33+ repository : wxWidgets/wxWidgets
34+ ref : ${{matrix.wx-version}}
35+ submodules : recursive
36+ path : wxWidgets
37+
38+ - name : build and install wxWidgets
39+ run : |
40+ mkdir wxWidgets/build-release
41+ cd wxWidgets/build-release
42+ cmake .. -DCMAKE_BUILD_TYPE=Release -DwxBUILD_DEBUG_LEVEL=1 -DwxBUILD_MONOLITHIC=0 -DwxBUILD_SAMPLES=SOME -DwxUSE_STL=1
43+ cmake --build . --config Release && cmake --build . -t install
44+
45+ # wxDatabase
46+ - name : Checkout
47+ uses : actions/checkout@v4
48+
49+ - name : build wxDatabase
50+ run : |
51+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_MYSQL=1 -DENABLE_SQLITE=1 -DENABLE_PGS=1 -DENABLE_TDS=0 -DENABLE_ODBC=0 -DBUILD_SAMPLE=0
52+ cmake --build build -j $(nproc)
53+
54+ # Upload artefact
55+ - name : artifact
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : wxDatabase-wx-${{matrix.wx-version}}
59+ path : |
60+ build/bin/**.*
61+ build/lib/**.*
62+
63+ - name : artifact # Cannot be with above artifact as no common path :-(
64+ uses : actions/upload-artifact@v4
65+ with :
66+ name : wxwidgets-${{matrix.wx-version}}
67+ path : |
68+ c:/Program Files (x86)/wxWidgets/**/*
You can’t perform that action at this time.
0 commit comments