Skip to content

Commit

Permalink
[CI] Add github action for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 authored and eranif committed Mar 20, 2024
1 parent 077457c commit 932064f
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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
# WxWidgets
- name: Checkout
uses: actions/checkout@v4
with:
repository: wxWidgets/wxWidgets
path: wxWidgets
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++11 -stdlib=libc++ -I../src/tiff/libtiff' CC=clang --disable-debug --disable-mediactrl --enable-stl
make -j10
sudo make install
# Codelite
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Build and install Codelite
run: |
mkdir build-release
cd build-release
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -j $(sysctl -n hw.physicalcpu)
cmake --build . --target install
- name: codelite --version
run: codelite.app/Contents/MacOS/codelite --version || exit 0 # codelite --version returns -1

0 comments on commit 932064f

Please sign in to comment.