-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (34 loc) · 867 Bytes
/
Copy pathcompile.yml
File metadata and controls
41 lines (34 loc) · 867 Bytes
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
name: compile
on:
workflow_call:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v1.3.3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Install .NET Framework 4.5.2 targeting pack
run: choco install netfx-4.5.2-devpack -y --no-progress
- name: debug build
shell: pwsh
run: |
.\Build.ps1
- name: release build
shell: pwsh
run: |
.\Build.ps1 -Debug $false
- name: store release artifacts
uses: actions/upload-artifact@v4
with:
name: release
path: dist\Release
if-no-files-found: error
- name: store debug artifacts
uses: actions/upload-artifact@v4
with:
name: debug
path: dist\Debug
if-no-files-found: error