-
Notifications
You must be signed in to change notification settings - Fork 462
54 lines (45 loc) · 1.53 KB
/
macos.yml
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
name: macos
on:
workflow_dispatch:
push:
pull_request:
jobs:
macos:
runs-on: macos-latest
steps:
- name: Install Codelite's dependencies
run: |
# brew update && brew upgrade # fails somehow
brew install git cmake libssh hunspell bison flex mariadb
# WxWidgets
- name: Checkout
uses: actions/checkout@v4
with:
repository: wxWidgets/wxWidgets
ref: v3.2.5
submodules: recursive
path: wxWidgets
- 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
# Codelite
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build, test and install Codelite
run: |
mkdir build-release
cd build-release
brew install autoconf automake libtool gettext
cmake .. -DCMAKE_BUILD_TYPE=Release -Wno-dev -DWITH_MYSQL=1 -DBUILD_TESTING=1
cmake --build . -j $(sysctl -n hw.physicalcpu)
cmake --build . --target install
ctest --output-on-failure
# Not the right command/path for codelite
# - name: codelite --version
# run: codelite.app/Contents/MacOS/codelite --version || exit 0 # codelite --version returns -1