-
-
Notifications
You must be signed in to change notification settings - Fork 82
40 lines (38 loc) · 1.44 KB
/
main.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
name: CI
on: [ push ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: cpp
- name: Cache NuGet packages
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: packages
key: packages-v4-${{ hashFiles('**/packages.config') }}
restore-keys: |
packages-v4-
- name: Restore NuGet packages
run: nuget restore
- name: Build Debug Win32
run: msbuild /p:Platform=Win32 /p:Configuration=Debug PathCopyCopy.sln
- name: Build Debug x64
run: msbuild /p:Platform=x64 /p:Configuration=Debug PathCopyCopy.sln
- name: Build Release Win32
run: msbuild /p:Platform=Win32 /p:Configuration=Release PathCopyCopy.sln
- name: Build Release x64
run: msbuild /p:Platform=x64 /p:Configuration=Release PathCopyCopy.sln
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v1
- name: Build installer
run: iscc /O+ /DSIGNCODE="no" /DDEVBUILD="yes" "Installer\Setup.iss"
- name: Upload installer artifact
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: installer
path: Installer/Output/