-
Notifications
You must be signed in to change notification settings - Fork 0
112 lines (99 loc) · 2.85 KB
/
run_vcv_tests.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Run VCV unit tests
on:
workflow_dispatch:
inputs:
linux_x64:
description: 'Run tests on Linux x64'
required: true
default: true
type: boolean
win_x64:
description: 'Run tests on Windows x64'
required: true
default: false
type: boolean
# mac_x64:
# description: 'Run tests on Mac x64'
# required: true
# default: false
# type: boolean
# mac_arm64:
# description: 'Run tests on Mac arm64'
# required: true
# default: false
# type: boolean
push:
branches:
- main
paths:
- 'vcv/**'
- 'shared/**'
- '!**.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)
env:
rack-sdk-version: latest
jobs:
build-tests-lin-x64:
if: ${{ github.event_name == 'push' || inputs.linux_x64 }}
name: lin-x64
runs-on: ubuntu-latest
strategy:
fail-fast: false
defaults:
run:
shell: bash
env:
CC: gcc
CXX: g++
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
token: ${{ secrets.CHECKOUT_TOKEN }}
- name: Get Rack-SDK
run: |
pushd $HOME
curl -o Rack-SDK.zip https://vcvrack.com/downloads/Rack-SDK-${{ env.rack-sdk-version }}-lin-x64.zip
unzip Rack-SDK.zip
- name: Build and run tests
run: |
export RACK_DIR=$HOME/Rack-SDK
cd vcv
make -f tests/Makefile
build-tests-win-x64:
if: ${{ inputs.win_x64 }} #Only run msys2 test manually
name: win-x64
runs-on: windows-latest
strategy:
fail-fast: false
defaults:
run:
shell: bash
env:
CC: gcc
CXX: g++
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
token: ${{ secrets.CHECKOUT_TOKEN }}
- name: Install windows dependencies (MSYS2)
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: >-
git wget make tar unzip zip mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-cmake autoconf automake libtool mingw-w64-x86_64-jq python zstd mingw-w64-x86_64-pkgconf
- name: Get Rack-SDK
run: |
pushd $HOME
wget https://vcvrack.com/downloads/Rack-SDK-${{ env.rack-sdk-version }}-win-x64.zip
unzip Rack-SDK-${{ env.rack-sdk-version }}-win-x64.zip
- name: Build and run tests
run: |
export RACK_DIR=$HOME/Rack-SDK
cd vcv
make -f tests/Makefile