Skip to content

Fixed build error on Windows #555

Fixed build error on Windows

Fixed build error on Windows #555

Workflow file for this run

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
steps:
- name: Install Codelite's dependencies
run: |
# brew update && brew upgrade # fails somehow
brew install git cmake libssh hunspell bison flex mariadb postgresql
# 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 $_
brew install autoconf automake libtool gettext
cmake .. -DCMAKE_BUILD_TYPE=Release -Wno-dev -DWITH_MYSQL=1 -DWITH_POSTGRES=1 -DWITH_CHATAI=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