Skip to content

Commit 73d04a8

Browse files
authored
macos builds (#642)
* Try build for osx * Attempt 2 * attempt 3 * Where are we? * Attempt 5 * print workspaces * Use the github workspace * Check current directory * Build on macos-latest * rm extra `cd build` * rm TARGET_OS_IPHONE macro from RtMidi.cpp * Dummy release * Add tag requirement Seems like they are needed after all. * Add tag name to file version
1 parent 6267c82 commit 73d04a8

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: osx-wizmode
2+
on: [push]
3+
4+
env:
5+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
6+
BUILD_TYPE: Release
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: make-build-dir
14+
run: mkdir build
15+
- name: Print github workspace
16+
run: |
17+
echo "PWD = $PWD"
18+
echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE"
19+
echo "github.workspace = ${{ github.workspace }}"
20+
echo "${{runner.workspace}}"
21+
echo "HOME = $HOME"
22+
- name: Set env
23+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
24+
- name: Show git tag
25+
run: |
26+
echo $RELEASE_VERSION
27+
echo ${{ env.RELEASE_VERSION }}
28+
- name: CI-Build
29+
shell: bash
30+
working-directory: ${{github.workspace}}/build
31+
env:
32+
CXXFLAGS: -DWIZARD
33+
run: |
34+
export SDL2DIR="$HOME/Thirdparty/Frameworks"
35+
export BUILD_MAC_APP=ON
36+
export IVAN_BUILD_DIR="${{github.workspace}}/build"
37+
export IVAN_FILE_VERSION=${RELEASE_VERSION#v}
38+
../ci/osx/requirements.sh
39+
../ci/osx/build.sh
40+
make install
41+
../ci/osx/package.sh
42+
ls ./osx
43+
44+
# Attention: you perform the release step when you push a tag, neat huh?
45+
- name: Release
46+
uses: softprops/action-gh-release@v1
47+
if: startsWith(github.ref, 'refs/tags/')
48+
with:
49+
files: ${{github.workspace}}/build/osx/*.dmg
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
#GITHUB_REPOSITORY: attnam/ivan

audio/RtMidi.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@
3939
#include "RtMidi.h"
4040
#include <sstream>
4141

42+
/*
4243
#if defined(__MACOSX_CORE__)
4344
#if TARGET_OS_IPHONE
4445
#define AudioGetCurrentHostTime CAHostTimeBase::GetCurrentTime
4546
#define AudioConvertHostTimeToNanos CAHostTimeBase::ConvertToNanos
4647
#endif
4748
#endif
49+
*/
4850

4951
//*********************************************************************//
5052
// RtMidi Definitions

0 commit comments

Comments
 (0)