-
-
Notifications
You must be signed in to change notification settings - Fork 59
72 lines (61 loc) · 2.12 KB
/
cmake.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:
jobs:
build_and_test:
if: contains(toJson(github.event.commits), '***NO_CI***') == false && contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false
name: Test plugin on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # show all errors for each platform (vs. cancel jobs on error)
matrix:
os: [ubuntu-latest, windows-2019, macOS-latest]
steps:
- name: Install Linux Deps
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt install libasound2-dev libcurl4-openssl-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev libjack-jackd2-dev lv2-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure
shell: bash
run: cmake -Bbuild
- name: Build
shell: bash
run: cmake --build build --config Release --parallel 4
- name: Validate
if: runner.os == 'Windows'
run: bash validate.sh
- name: Upload Linux Artifact GitHub Action
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: linux-assets
path: /home/runner/work/NeuralPi/NeuralPi/build/NeuralPi_artefacts
- name: Upload Mac Artifact GitHub Action
if: runner.os == 'macOS'
uses: actions/upload-artifact@v2
with:
name: mac-assets
path: /Users/runner/work/NeuralPi/NeuralPi/build/NeuralPi_artefacts
- name: Upload Windows Artifact GitHub Action
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: win-assets
path: D:/a/NeuralPi/NeuralPi/build/NeuralPi_artefacts