-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (68 loc) · 2.18 KB
/
build_simulator.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
73
74
75
76
name: Build Simulator
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'simulator/**'
- 'shared/**'
- 'firmware/src/gui/**'
- 'firmware/src/VCV_adaptor/**'
- 'firmware/src/patch**'
- 'firmware/src/params/**'
- 'firmware/src/console/**'
- 'firmware/vcv_ports/**'
- 'firmware/lib/lvgl/**'
- '!**.md' # Skip docs
- '!shared/svgextract' # Skip generator script (still run CI if generated files change)
- '!shared/gen_minblep' # Skip generator script (still run CI if generated files change)
- '!shared/tableGen' # Skip generator script (still run CI if generated files change)
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- { os: windows, shell: msys2 }
- { os: ubuntu, shell: bash }
- { os: macos, shell: bash }
compiler: [ {cpp: clang++, c: clang}, {cpp: g++, c: gcc} ]
exclude:
- os: { os: windows, shell: msys2 }
compiler: {cpp: clang++, c: clang}
- os: { os: macos, shell: bash }
compiler: {cpp: g++, c: gcc}
runs-on: '${{ matrix.os.os }}-latest'
defaults:
run:
shell: '${{ matrix.os.shell }} {0}'
env:
CC: ${{ matrix.compiler.c }}
CXX: ${{ matrix.compiler.cpp }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install mac dependencies
if: matrix.os.os == 'macos'
run: |
brew install ninja sdl2
- name: Install linux dependencies
if: matrix.os.os =='ubuntu'
run: |
sudo apt-get update
sudo apt-get install ninja-build libsdl2-dev
- name: Install windows dependencies
if: matrix.os.os == 'windows'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git make mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-cmake mingw-w64-x86_64-pkgconf mingw-w64-x86_64-ninja mingw-w64-x86_64-SDL2
- name: 'Build'
run: |
cd simulator
cmake -G Ninja -B build
cmake --build build