-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (37 loc) · 990 Bytes
/
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
41
42
43
44
# This is a basic workflow to help you get started with Actions
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
buildx64:
name: Build x64
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1
- name: Build Solution (x64)
run: msbuild trview.sln /property:Configuration=Release /property:Platform=x64 /m
- name: Test Solution (x64)
run: |
$any_errors = $false
foreach ($file in Get-ChildItem x64\Release\*.tests.exe -Exclude trview.app.ui.tests.exe)
{
. $file;
if (!$?)
{
$any_errors = $true;
}
}
if ($any_errors)
{
throw "One or more tests failed"
}
- name: Upload Artifact (x64)
uses: actions/upload-artifact@v2
with:
name: trview-x64
path: x64\Release\trview.exe