-
Notifications
You must be signed in to change notification settings - Fork 20
98 lines (75 loc) · 3.5 KB
/
BuildWindows.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
name: 👷♀️ Build for Windows
on: push
jobs:
build_plugin_windows:
name: 👷♀️ 📺 Build and codesign plugin for Windows
runs-on: windows-2022
steps:
# Setting up dependencies =============================================================================
- uses: actions/checkout@v2
with:
submodules: recursive
#- name: Fetch AAX SDK from private repository
# run: gh release download --repo JanosGit/AAX_SDK 2.4.0
# env:
# GITHUB_TOKEN: ${{ secrets.AAX_LIBRARY_REPOSITORY_TOKEN }}
#- name: Unzip AAX SDK
# run: tar -xf AAX-SDK-windows.zip
# CMake configuration ================================================================================
- name: Configure CMake
working-directory: ${{ runner.workspace }}
run: cmake -S Schrammel_OJD -B ${{ runner.workspace }}/build -DCOPY_PLUGIN_AFTER_BUILD=FALSE #-DAAX_SDK_PATH=AAX-SDK-windows
# Build ==============================================================================================
- name: Build
working-directory: ${{ runner.workspace }}/build
run: cmake --build . --config Release
# Move the built files to the output folder ==========================================================
- name: Create output folder
run: New-Item -Path '${{ runner.workspace }}\OJD-build-output' -ItemType Directory
if: runner.os == 'Windows'
- name: Copy VST3 to output folder
run: Copy-Item -Path '${{ runner.workspace }}\build\OJD-VST3_artefacts\Release\VST3' -Destination '${{ runner.workspace }}\OJD-build-output' -Recurse
if: runner.os == 'Windows'
#- name: Copy AAX to output folder
# run: Copy-Item -Path '${{ runner.workspace }}\build\OJD-AAX_artefacts\Release\AAX' -Destination '${{ runner.workspace }}\OJD-build-output' -Recurse
# if: runner.os == 'Windows'
# Upload build artifacts ============================================================================
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: OJD-build-output-windows
path: ${{ runner.workspace }}/OJD-build-output
- name: Upload installer support files
uses: actions/upload-artifact@v2
with:
name: OJD-installer-files-windows
path: ${{ runner.workspace }}/Schrammel_OJD/Deployment/windows
if: github.event.pull_request.merged
build_installer_windows:
name: 📦 📺 Build installer for Windows
runs-on: windows-latest
if: github.event.pull_request.merged
needs: build_plugin_windows
steps:
- name: Download Windows build artefacts from previous job
uses: actions/download-artifact@v2
with:
name: OJD-build-output-windows
- name: Download Windows installer files
uses: actions/download-artifact@v2
with:
name: OJD-installer-files-windows
- name: Cleanup installer files
uses: geekyeggo/delete-artifact@v1
with:
name: OJD-installer-files-windows
- name: Download Visual C++ redistributable
run: Invoke-WebRequest https://aka.ms/vs/16/release/vc_redist.x64.exe -O vc_redist.x64.exe
shell: powershell
- name: Build installer
run: iscc "OJD Installer.iss"
- name: Upload installer
uses: actions/upload-artifact@v2
with:
name: OJD-installer-windows
path: "Output/Install OJD.exe"