-
Notifications
You must be signed in to change notification settings - Fork 124
66 lines (53 loc) · 1.61 KB
/
msbuild.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
# Trigger the workflow on push or pull requests, but only for the
# main branch
push:
branches:
- main
- '*/ci'
pull_request:
branches:
- main
jobs:
msbuild:
runs-on: 'windows-latest'
steps:
- name: Checkout Raccine
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Setup NuGet
uses: NuGet/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Nuget Restore
run: nuget restore Raccine.sln
- name: Run msbuild of Raccine for x86 release
run: msbuild -m /p:Configuration=Release /p:Platform=x86
- name: Run msbuild of Raccine for x64 release
run: msbuild -m /p:Configuration=Release /p:Platform=x64
- name: Run msbuild of RaccineGUI for release
run: msbuild -m /p:Configuration=Release
working-directory: ./RaccineGUI/RaccineCfg
- name: Run msbuild of RaccineGUI for release
run: msbuild -m /p:Configuration=Release
working-directory: ./RaccineGUI/RaccineCfg
- name: Run Tests (x64)
run: Raccine-Test.exe
working-directory: ./x64/Release
shell: cmd
- name: Run Tests (x86)
run: Raccine-Test.exe
working-directory: ./Release
shell: cmd
- name: Run build_dist.bat
run: ./build_dist.bat
shell: cmd
- name: Upload Raccine
uses: actions/upload-artifact@v2
with:
name: Raccine
path: Raccine/