-
Notifications
You must be signed in to change notification settings - Fork 27
51 lines (40 loc) · 1.33 KB
/
builds-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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: macOS KnobKraft Orm
on: push
jobs:
build-macos:
runs-on: macos-10.15
steps:
- name: Checkout repository with tags
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Additionally checkout submodules - don't use checkout action as it will overwrite refs
run: |
git submodule update --recursive --init --depth 1
- name: Prepare build machine with homebrew
run: |
brew install boost
brew reinstall icu4c
ls /usr/local/Cellar/icu4c/
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Patch JUCE
working-directory: third_party/JUCE
run: |
git apply --whitespace=fix ../JUCE-patch-getApproxDescription.diff
- name: CMake configure
shell: bash
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=/usr/local/Cellar/icu4c/71.1
- name: CMake build
run: cmake --build build --target package --parallel
- name: Publish release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: build/KnobKraft_Orm-${{env.ORM_VERSION}}-Darwin.dmg
tags: true
draft: true