-
-
Notifications
You must be signed in to change notification settings - Fork 25
49 lines (39 loc) · 1.41 KB
/
build.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
#i was on the verge of killing myself while writing this build script (they have my family please help)
name: Build Installer
on:
push:
branches:
- main
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # allow fortnite wallhacks
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install MSVC
uses: microsoft/[email protected]
- name: Download and install Vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg.exe integrate install
working-directory: ${{ github.workspace }}
- name: Install Vcpkg dependencies
run: |
${{ github.workspace }}/vcpkg/vcpkg.exe install nlohmann-json:x86-windows
- name: Build Installer
run: |
msbuild /p:Configuration=Release /p:Platform=x86 /m installer.sln
working-directory: ${{ github.workspace }}
- name: Set MSBuild path
run: |
echo "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin" >> $GITHUB_PATH
shell: cmd
- name: Create Release Artifact
uses: actions/upload-artifact@v2
with:
name: millennium-installer
path: ${{ github.workspace }}/dist/installer-prod.Release-x86Windows/Millennium-Installer.exe # Use the new build path