aboutsummaryrefslogtreecommitdiff
path: root/portmidi/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to 'portmidi/.github/workflows/build.yml')
-rw-r--r--portmidi/.github/workflows/build.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/portmidi/.github/workflows/build.yml b/portmidi/.github/workflows/build.yml
new file mode 100644
index 0000000..351b5cb
--- /dev/null
+++ b/portmidi/.github/workflows/build.yml
@@ -0,0 +1,47 @@
1name: build
2
3on:
4 push:
5 pull_request:
6
7jobs:
8 build:
9 strategy:
10 fail-fast: false
11 matrix:
12 include:
13 - name: Ubuntu
14 os: ubuntu-latest
15 install_dir: ~/portmidi
16 cmake_extras: -DCMAKE_BUILD_TYPE=RelWithDebInfo
17 - name: macOS
18 os: macos-latest
19 install_dir: ~/portmidi
20 cmake_extras: -DCMAKE_BUILD_TYPE=RelWithDebInfo
21 - name: Windows
22 os: windows-latest
23 install_dir: C:\portmidi
24 cmake_config: --config RelWithDebInfo
25
26 name: ${{ matrix.name }}
27 runs-on: ${{ matrix.os }}
28 steps:
29 - name: Check out Git repository
30 uses: actions/checkout@v2
31 - name: "[Ubuntu] Install dependencies"
32 run: sudo apt install -y libasound2-dev
33 if: runner.os == 'Linux'
34 - name: Configure
35 run: cmake -D CMAKE_INSTALL_PREFIX=${{ matrix.install_dir }} ${{ matrix.cmake_extras }} -S . -B build
36 - name: Build
37 run: cmake --build build ${{ matrix.cmake_config }}
38 env:
39 CMAKE_BUILD_PARALLEL_LEVEL: 2
40 - name: Install
41 run: cmake --install . ${{ matrix.cmake_config }}
42 working-directory: build
43 - name: Upload Build Artifact
44 uses: actions/upload-artifact@v2
45 with:
46 name: ${{ matrix.name }} portmidi build
47 path: ${{ matrix.install_dir }}