-
Notifications
You must be signed in to change notification settings - Fork 1
123 lines (106 loc) · 2.76 KB
/
windows-latest.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
111
112
113
114
115
116
117
118
119
120
121
122
123
name: windows
on:
# Runs on all pushes
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# When pushing new commits, cancel any running builds on that branch
concurrency:
group: windows-latest-${{ github.ref }}
cancel-in-progress: true
env:
DISPLAY: :0
CMAKE_BUILD_PARALLEL_LEVEL: 3
CMAKE_INSTALL_PARALLEL_LEVEL: 3
BUILD_DIR: build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCCACHE_GHA_ENABLED: "true"
RACK_SDK_VERSION: 2.5.2
RACK_SDK_PLATFORM: "win-x64"
MSYSTEM: "MINGW64"
jobs:
windows:
runs-on: windows-latest
# defaults:
# run:
# shell: msys2 {0}
steps:
# REQUIREMENTS
- name: Checkout StoneyVCV code
uses: actions/checkout@v4
with:
submodules: true
- name: Install winget
uses: Cyberboss/install-winget@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://vcvrack.com/manual/Building#Setting-up-your-development-environment
- name: Install VCVRack2Free
run: winget install VCVRack.VCVRack --disable-interactivity --accept-source-agreements
- name: Use MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
--needed
base-devel
git
curl
wget
make
tar
unzip
ccache
mingw-w64-x86_64-gcc
mingw-w64-x86_64-gdb
mingw-w64-x86_64-cmake
mingw-w64-x86_64-catch
mingw-w64-x86_64-ninja
autoconf
automake
libtool
mingw-w64-x86_64-jq
python
zstd
mingw-w64-x86_64-pkgconf
tree
ninja
- name: Fetch Rack SDK
shell: msys2 {0}
run: |
mkdir dep
curl https://vcvrack.com/downloads/Rack-SDK-${{env.RACK_SDK_VERSION}}-${{env.RACK_SDK_PLATFORM}}.zip -o ./dep/Rack-SDK-${{env.RACK_SDK_VERSION}}-${{env.RACK_SDK_PLATFORM}}.zip
cd dep
unzip Rack-SDK-${{env.RACK_SDK_VERSION}}-${{env.RACK_SDK_PLATFORM}}.zip
cd ..
# DEVELOPER WORKFLOW
- name: Configure
shell: msys2 {0}
env:
RACK_DIR: ${{ github.workspace }}/dep/Rack-SDK
run: >-
cmake
--preset x64-windows-release
--fresh
- name: Install
shell: msys2 {0}
run: >-
cmake
--install ${{ env.BUILD_DIR }}
--prefix ${PWD}/install
--strip
-j 3
# DEPLOYMENT WORKFLOW
- name: Package
shell: msys2 {0}
env:
RACK_DIR: ${{ github.workspace }}/dep/Rack-SDK
run: make package -j3
# List all files in install tree
- name: Tree
shell: msys2 {0}
run: |
cd install
tree
cd ..