forked from BlueFinBima/Helios14
-
Notifications
You must be signed in to change notification settings - Fork 41
104 lines (87 loc) · 4 KB
/
Copy pathDevBuild.yml
File metadata and controls
104 lines (87 loc) · 4 KB
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
name: HeliosDev Build & Create MSI Files
# This workflow is intended to produce a new Helios build for testing (ie 1.6.1000.0).
# On successful build and packaging, the files are made available as assets
#
# This workflow requires strict adherence to the Helios Tag and Branch naming
# conventions.
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v5
- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE
- name: Disable Out of Process Building
run: .\DisableOutOfProcBuild.exe
working-directory: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild
- uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NuGetAPIKey }}
nuget-version: '5.x'
- name: NuGet Restore
run: |
nuget restore BuildMeFirst.sln
nuget restore "KeyPressReceiver/Keypress Receiver.csproj"
nuget restore Thirdparty/StreamDeckSharp/src/StreamDeckSharp/StreamDeckSharp.csproj
nuget restore Thirdparty/OpenMacroBoard.SDK/src/OpenMacroBoard.SDK/OpenMacroBoard.SDK.csproj
nuget restore Thirdparty/OpenMacroBoard.SDK/src/OpenMacroBoard.VirtualBoard/OpenMacroBoard.VirtualBoard.csproj
nuget restore Helios.sln
- name: Clean and Build x86 and x64 Solutions
continue-on-error: true
shell: cmd
run: |
build.cmd test
echo "rc=%errorlevel%" >> $env:GITHUB_ENV
- name: zip up build logs
continue-on-error: true
run: |
mkdir ./Assets
tar -a -c -f "BuildLogs.zip" -C "." *.binlog
- name: Upload Build Logs
uses: actions/upload-artifact@v4
with:
name: Build Logs
path: "./BuildLogs.zip"
retention-days: 5
- name: Force Error if there was a Previous Error
# This is a delayed exit because we needed to make the build logs available before leaving
if: ${{ env.rc != 0 }}
run: |
ForceExit # This should always cause an error because the program will not be found. The real error is going to be on the Clean & Build step above.
- name: zip up the msi
continue-on-error: true
run: |
tar -a -c -f "./Assets/HeliosDev_Installers.zip" -C "Helios Installer\Release" *.msi -C "../../Keypress Receiver Installer/Release" *.msi -C "../../Tools Installer/Release" *.msi
tar -a -c -f "./Assets/HeliosDev32Bit_Installers.zip" -C "Helios Installer/Release32" *.msi
tar -a -c -f "./Assets/HeliosDev_StreamDeck_Alpha.zip" -C "bin/x64/Release" Plugins/OpenMacroBoard.SDK.dll Plugins/OpenMacroBoard.VirtualBoard.dll Plugins/StreamDeckSharp.dll Plugins/HeliosMacroBoard.dll
- name: Upload Helios_Installers 1
uses: actions/upload-artifact@v4
with:
name: Helios ${{ env.NewTag }} Release Candidate 64Bit Installers
path: "./Assets/HeliosDev_Installers.zip"
retention-days: 2
- name: Upload Helios_Installers 2
uses: actions/upload-artifact@v4
with:
name: Helios ${{ env.NewTag }} Release Candidate 32Bit Installers
path: "./Assets/HeliosDev32Bit_Installers.zip"
retention-days: 2
- name: Upload Helios_Installers 3
uses: actions/upload-artifact@v4
with:
name: Helios ${{ env.NewTag }} Release Candidate Stream Deck Installer
path: "./Assets/HeliosDev_StreamDeck_Alpha.zip"
retention-days: 2