-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (52 loc) · 1.71 KB
/
ccpp-macos.yml
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
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: 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 brew x86
run: arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: install boost x86
run: arch -x86_64 /usr/local/bin/brew install boost
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="x86_64" ..
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