-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (51 loc) · 1.35 KB
/
Copy pathmacos.yml
File metadata and controls
59 lines (51 loc) · 1.35 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
name: macos
on:
workflow_dispatch:
push:
paths:
- 'CMakeLists.txt'
- 'dap/**'
- 'dbgcli/**'
- 'tests/**'
- '.github/workflows/macos.yml'
pull_request:
paths:
- 'CMakeLists.txt'
- 'dap/**'
- 'dbgcli/**'
- 'tests/**'
- '.github/workflows/macos.yml'
jobs:
macos:
runs-on: macos-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
../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
make -j$(sysctl -n hw.physicalcpu)
sudo make install
# wxdap
- name: Checkout wxdap
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 . -j $(sysctl -n hw.physicalcpu)
- name: test
run: |
cd build-release
ctest --output-on-failure