File tree 1 file changed +55
-0
lines changed
1 file changed +55
-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
+ - ' **.h'
10
+ - ' **.cmake'
11
+ - ' CMakeLists.txt'
12
+ pull_request :
13
+ paths :
14
+ - ' .github/workflows/macos.yml'
15
+ - ' **.cpp'
16
+ - ' **.h'
17
+ - ' **.cmake'
18
+ - ' CMakeLists.txt'
19
+ jobs :
20
+ macos :
21
+ runs-on : macos-latest
22
+
23
+ steps :
24
+
25
+ # Dependencies
26
+ - name : install wxDatabase's dependencies
27
+ run : |
28
+ # brew update && brew upgrade # fails somehow
29
+ brew install mariadb postgresql
30
+
31
+ # WxWidgets
32
+ - name : Checkout
33
+ uses : actions/checkout@v4
34
+ with :
35
+ repository : wxWidgets/wxWidgets
36
+ ref : v3.2.5
37
+ submodules : recursive
38
+ path : wxWidgets
39
+
40
+ - name : Build and install wxWidgets
41
+ run : |
42
+ mkdir wxWidgets/build-release
43
+ cd wxWidgets/build-release
44
+ ../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
45
+ make -j$(sysctl -n hw.physicalcpu)
46
+ sudo make install
47
+
48
+ # wxDatabase
49
+ - name : Checkout wxDatabase
50
+ uses : actions/checkout@v4
51
+
52
+ - name : build wxDatabase
53
+ run : |
54
+ 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
55
+ cmake --build build -j $(nproc)
You can’t perform that action at this time.
0 commit comments