-
Notifications
You must be signed in to change notification settings - Fork 62
37 lines (28 loc) · 1.04 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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x' # SDK Version to use.
# other tests require a desktop environment as they start cmd.exe and winver.exe processes
- run: dotnet test -c release --filter "FullyQualifiedName~ProcessGovernor.Tests.Code.ProgramTests.ParseArgs"
working-directory: ./procgov-tests
- run: dotnet publish -c release -r win-x64
working-directory: ./procgov
- name: Copy artifacts
run: |
New-Item -Type Directory -Path artifacts
Copy-Item -Path "procgov/bin/release/net9.0-windows/win-x64/publish/procgov.exe" -Destination "artifacts/procgov.exe"
Copy-Item -Path "procgov/bin/release/net9.0-windows/win-x64/publish/procgov.pdb" -Destination "artifacts/procgov.pdb"
- uses: actions/upload-artifact@v4
with:
name: procgov
path: artifacts/*