Skip to content

Commit a396163

Browse files
authored
Merge pull request #2699 from llloret/sp_midi_as_subtree
Sp midi as subtree
2 parents f5d3b00 + 3441fda commit a396163

File tree

6 files changed

+1814
-63
lines changed

6 files changed

+1814
-63
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CMake
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
env:
6+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
7+
BUILD_TYPE: Release
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
runs-on: ${{ matrix.os }}
16+
17+
# The CMake configure and build commands are platform agnostic and should work equally
18+
# well on Windows or Mac. You can convert this to a matrix build if you need
19+
# cross-platform coverage.
20+
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Fetch packages (Linux)
26+
if: runner.os == 'Linux'
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install libasound2-dev librtmidi-dev erlang-dev
30+
31+
- name: Fetch packages (Mac)
32+
continue-on-error: true
33+
if: runner.os == 'macOS'
34+
run: |
35+
export HOMEBREW_NO_INSTALL_CLEANUP=1
36+
brew update
37+
brew install erlang
38+
39+
- name: Fetch packages (Windows)
40+
if: runner.os == 'Windows'
41+
run: choco install erlang
42+
43+
# - name: Setup tmate session
44+
# if: runner.os == 'Windows'
45+
# uses: mxschmitt/action-tmate@v3
46+
# timeout-minutes: 15
47+
48+
- name: Create Build Environment
49+
# Some projects don't allow in-source building, so create a separate build directory
50+
# We'll use this as our working directory for all subsequent commands
51+
run: cmake -E make_directory ${{github.workspace}}/build
52+
53+
- name: Configure CMake
54+
# Use a bash shell so we can use the same syntax for environment variable
55+
# access regardless of the host operating system
56+
shell: bash
57+
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.
60+
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
61+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
62+
63+
- name: Build
64+
working-directory: ${{github.workspace}}/build
65+
shell: bash
66+
# Execute the build. You can specify a specific target with "--target <NAME>"
67+
run: cmake --build . --config $BUILD_TYPE

app/external/sp_midi/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ osmid.sublime-workspace
88
*.beam
99
.vs/
1010
*.bak
11+
.#*

app/external/sp_midi/.travis.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# /* **************************************************************************
2+
# * *
3+
# * (C) Copyright Paul Mensonides 2002.
4+
# * Distributed under the Boost Software License, Version 1.0. (See
5+
# * accompanying file LICENSE_1_0.txt or copy at
6+
# * http://www.boost.org/LICENSE_1_0.txt)
7+
# * *
8+
# ************************************************************************** */
9+
#
10+
# /* See http://www.boost.org for most recent version. */
11+
#
12+
# ifndef BOOST_PREPROCESSOR_DEBUG_ERROR_HPP
13+
# define BOOST_PREPROCESSOR_DEBUG_ERROR_HPP
14+
#
15+
# include <boost/preprocessor/cat.hpp>
16+
# include <boost/preprocessor/config/config.hpp>
17+
#
18+
# /* BOOST_PP_ERROR */
19+
#
20+
# if BOOST_PP_CONFIG_ERRORS
21+
# define BOOST_PP_ERROR(code) BOOST_PP_CAT(BOOST_PP_ERROR_, code)
22+
# endif
23+
#
24+
# define BOOST_PP_ERROR_0x0000 BOOST_PP_ERROR(0x0000, BOOST_PP_INDEX_OUT_OF_BOUNDS)
25+
# define BOOST_PP_ERROR_0x0001 BOOST_PP_ERROR(0x0001, BOOST_PP_WHILE_OVERFLOW)
26+
# define BOOST_PP_ERROR_0x0002 BOOST_PP_ERROR(0x0002, BOOST_PP_FOR_OVERFLOW)
27+
# define BOOST_PP_ERROR_0x0003 BOOST_PP_ERROR(0x0003, BOOST_PP_REPEAT_OVERFLOW)
28+
# define BOOST_PP_ERROR_0x0004 BOOST_PP_ERROR(0x0004, BOOST_PP_LIST_FOLD_OVERFLOW)
29+
# define BOOST_PP_ERROR_0x0005 BOOST_PP_ERROR(0x0005, BOOST_PP_SEQ_FOLD_OVERFLOW)
30+
# define BOOST_PP_ERROR_0x0006 BOOST_PP_ERROR(0x0006, BOOST_PP_ARITHMETIC_OVERFLOW)
31+
# define BOOST_PP_ERROR_0x0007 BOOST_PP_ERROR(0x0007, BOOST_PP_DIVISION_BY_ZERO)
32+
#
33+
# endif

0 commit comments

Comments
 (0)