Skip to content

Commit

Permalink
Feature/mac arm (#466)
Browse files Browse the repository at this point in the history
* Create ccpp-macos-arm.yml

* Update ccpp-macos-arm.yml

* Update ccpp-macos-arm.yml
  • Loading branch information
SambaGodschynski authored Dec 10, 2024
1 parent 70c5aae commit 5b43e7a
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ccpp-macos-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Mac-arm 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: configure python venv
run: python -m venv myEnv
working-directory: rendertests
- name: install render test requirements
run: source myEnv/bin/activate && pip3 install -r requirements.txt
working-directory: rendertests
- name: install boost
run: brew install boost
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64" ..
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)
working-directory: build
- name: build
run: cmake --build .
working-directory: build
- name: test
run: ./rehearse
working-directory: build
- name: run rendertests
run: source myEnv/bin/activate && python3 runtests.py
continue-on-error: true
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

0 comments on commit 5b43e7a

Please sign in to comment.