File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : macos
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - ' .github/workflows/macos.yml'
8+ - ' **.cpp'
9+ - ' **.cpp'
10+ - ' **.h'
11+ - ' **.cmake'
12+ - ' CMakeLists.txt'
13+ pull_request :
14+ paths :
15+ - ' .github/workflows/macos.yml'
16+ - ' **.cpp'
17+ - ' **.cpp'
18+ - ' **.h'
19+ - ' **.cmake'
20+ - ' CMakeLists.txt'
21+
22+
23+ jobs :
24+ macos :
25+ runs-on : macos-latest
26+
27+ steps :
28+
29+ # Dependencies
30+ - name : install wxDatabase's dependencies
31+ run : |
32+ # brew update && brew upgrade # fails somehow
33+ brew install mariadb postgresql
34+
35+ # WxWidgets
36+ - name : Checkout
37+ uses : actions/checkout@v4
38+ with :
39+ repository : wxWidgets/wxWidgets
40+ ref : v3.2.5
41+ submodules : recursive
42+ path : wxWidgets
43+
44+ - name : Build and install wxWidgets
45+ run : |
46+ mkdir wxWidgets/build-release
47+ cd wxWidgets/build-release
48+ ../configure --enable-shared --enable-monolithic --with-osx_cocoa CXX='clang++ -std=c++17 -stdlib=libc++ -I../src/tiff/libtiff' CC=clang --disable-debug --disable-mediactrl --enable-stl
49+ make -j$(sysctl -n hw.physicalcpu)
50+ sudo make install
51+
52+ # wxDatabase
53+ - name : Checkout wxDatabase
54+ uses : actions/checkout@v4
55+
56+ - name : build wxDatabase
57+ run : |
58+ 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=1
59+ cmake --build build -j $(nproc)
You can’t perform that action at this time.
0 commit comments