-
Notifications
You must be signed in to change notification settings - Fork 483
75 lines (65 loc) · 2.03 KB
/
macos.yml
File metadata and controls
75 lines (65 loc) · 2.03 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: macos
on:
workflow_dispatch:
push:
paths:
- '**'
- '!.github/**'
- '.github/workflows/macos.yml'
pull_request:
paths:
- '**'
- '!.github/**'
- '.github/workflows/macos.yml'
jobs:
macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
wx-version: ['v3.2.8']
wx-options: ['--enable-stl', '--disable-stl']
steps:
- name: Install Codelite's dependencies
run: |
brew update || true
brew upgrade || true
brew install git || true
brew install cmake || true
brew install libssh || true
brew install hunspell || true
brew install bison || true
brew install flex || true
brew install mariadb || true
brew install postgresql || true
# WxWidgets
- name: Checkout
uses: actions/checkout@v6
with:
repository: wxWidgets/wxWidgets
ref: ${{ matrix.wx-version }}
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 ${{ matrix.wx-options }}
make -j$(sysctl -n hw.physicalcpu)
sudo make install
# Codelite
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Build, test and install Codelite
run: |
mkdir build-release
cd $_
brew install autoconf automake libtool gettext
export CMAKE_POLICY_VERSION_MINIMUM=3.5
cmake .. -DCMAKE_BUILD_TYPE=Release -Wno-dev -DWITH_MYSQL=1 -DBUILD_TESTING=1
make -j$(sysctl -n hw.physicalcpu) VERBOSE=1 install
ctest --output-on-failure
# - name: codelite --version
# run: codelite.app/Contents/MacOS/codelite --version || exit 0 # codelite --version returns -1