-
Notifications
You must be signed in to change notification settings - Fork 925
54 lines (42 loc) · 1.77 KB
/
Copy pathci.yaml
File metadata and controls
54 lines (42 loc) · 1.77 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
name: CI
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2
- name: Restore
run: msbuild source\BulkCrapUninstaller.sln /t:Restore /p:Configuration=Release /p:Platform="Any CPU" /verbosity:minimal
- name: Build
run: >
msbuild source\BulkCrapUninstaller.sln /t:Publish /p:Configuration=Release /p:Platform="Any CPU" /verbosity:minimal
/p:filealignment=512 /p:DeployOnBuild=true /p:PublishSingleFile=False /p:SelfContained=False /p:PublishReadyToRun=false /p:PublishTrimmed=False
/p:PublishProtocol=FileSystem /p:PublishDir="${{ github.workspace }}\bin\publish"
- name: Build launcher
run: >
msbuild "source\BCU-launcher\BCU-launcher.vcxproj" /t:Build /p:Configuration=Release /p:Platform=Win32 /m /verbosity:minimal
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ${{ github.event.repository.name }}_${{ github.sha }}
path: bin\publish
- name: Test
run: >
dotnet test source\BulkCrapUninstallerTests\BulkCrapUninstallerTests.csproj
--configuration Release
--no-restore
--logger "trx;LogFileName=BulkCrapUninstallerTests.trx"
--results-directory "${{ github.workspace }}\TestResults"
- name: Upload test results
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: windows-test-results_${{ github.sha }}
path: TestResults\*.trx
if-no-files-found: warn