Skip to content

Commit f7866da

Browse files
committed
Squashed 'app/external/sp_midi/' changes from 6cdd94525..834fe552b
834fe552b Merge pull request #27 from sonic-pi-net/catch-sendMessage-exceptions 34d6cb763 Merge pull request #28 from sonic-pi-net/rtmidi-5 e4d31dd55 rtmidi - include BEAM v24 headers for Windows builds e60fa869b CI - handle Erlang dep w/ same method used in Sonic Pi d738b9565 External Libs - upgrade RtMidi to v5.0.0 94b3880c3 Update midiout.cpp aea10f081 Remove hotplug thread and trigger refresh from erl (#26) git-subtree-dir: app/external/sp_midi git-subtree-split: 834fe552b13c5c1a196174989ea805720c65b62a
1 parent 58bc8bc commit f7866da

22 files changed

+4168
-186
lines changed

.github/workflows/cmake.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,35 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v2
24-
24+
2525
- name: Fetch packages (Linux)
2626
if: runner.os == 'Linux'
2727
run: |
28-
sudo apt-get update
29-
sudo apt-get install libasound2-dev librtmidi-dev erlang-dev
28+
sudo apt update
29+
sudo apt install -y libasound2-dev librtmidi-dev
30+
31+
- name: Linux Elixir
32+
uses: erlef/setup-beam@v1
33+
with:
34+
otp-version: '24'
35+
elixir-version: '1.13'
36+
if: matrix.os == 'ubuntu-latest'
3037

31-
- name: Fetch packages (Mac)
38+
- name: Win Elixir
39+
uses: erlef/setup-beam@v1
40+
with:
41+
otp-version: '24'
42+
elixir-version: '1.13'
43+
if: runner.os == 'Windows'
44+
45+
- name: Mac Elixir
3246
continue-on-error: true
3347
if: runner.os == 'macOS'
3448
run: |
3549
export HOMEBREW_NO_INSTALL_CLEANUP=1
3650
brew update
37-
brew install erlang
51+
brew install elixir
3852
39-
- name: Fetch packages (Windows)
40-
if: runner.os == 'Windows'
41-
run: choco install erlang
4253
4354
# - name: Setup tmate session
4455
# if: runner.os == 'Windows'
@@ -55,8 +66,8 @@ jobs:
5566
# access regardless of the host operating system
5667
shell: bash
5768
working-directory: ${{github.workspace}}/build
58-
# Note the current convention is to use the -S and -B options here to specify source
59-
# and build directories, but this is only available with CMake 3.13 and higher.
69+
# Note the current convention is to use the -S and -B options here to specify source
70+
# and build directories, but this is only available with CMake 3.13 and higher.
6071
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
6172
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
6273

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ elseif(UNIX)
1919
set(ERLANG_INCLUDE_PATH "/usr/lib/erlang/usr/include" CACHE PATH "Path to erlang includes")
2020
find_package(ALSA REQUIRED)
2121
elseif(MSVC)
22-
if(DEFINED ENV{GITHUB_ACTION})
23-
set(ERLANG_INCLUDE_PATH "C:/Program Files/erl10.7/usr/include" CACHE PATH "Path to erlang includes")
24-
else()
25-
set(ERLANG_INCLUDE_PATH "C:/Program Files/erl-23.0/usr/include" CACHE PATH "Path to erlang includes")
26-
endif()
22+
set(ERLANG_INCLUDE_PATH ${PROJECT_SOURCE_DIR}/external_libs/rtmidi/windows/headers/erlang CACHE PATH "Path to erlang includes")
2723
endif(APPLE)
2824

2925
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

0 commit comments

Comments
 (0)