Skip to content

Update ccpp-macos.yml #1048

Update ccpp-macos.yml

Update ccpp-macos.yml #1048

Workflow file for this run

name: Mac Build
on:
push:
branches:
- main
- feature/*
- bugfix/*
- develop
- bugfix/*
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: update submodules
run: git submodule update --init --recursive --remote
#- name: install icu4c
# run: brew install icu4c
- name: configure python venv
run: python -m venv myEnv && source myEnv/bin/activate
- name: install render test requirements
run: pip3 install -r requirements.txt
working-directory: rendertests
- name: install boost
run: brew install boost #sh ./mac_build_boost_fallback.sh
# working-directory: third_party
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release ..
env:
WM_DOWNLOAD_EXTERNALS: 0 # for some reason the boost build fails here: seems not to find the right toolset (for the first run, the second try succeeds)
#BOOST_ROOT: ${{ github.workspace }}/third_party/boost
working-directory: build
- name: build
run: cmake --build .
working-directory: build
- name: test
run: ./rehearse
working-directory: build
- name: run rendertests
run: python3 runtests.py
continue-on-error: false # rendertests fail on mac (since XCode15?)
working-directory: rendertests
- name: pack
run: cmake --build . --config Release --target package
working-directory: build
- uses: actions/upload-artifact@v4
with:
name: werckmeister-mac-${{ github.sha }}
path: |
build/werckmeister-*-Darwin.pkg
rendertests/*.mid