-
Notifications
You must be signed in to change notification settings - Fork 11
74 lines (63 loc) · 1.69 KB
/
pr-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
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
67
68
69
70
71
72
name: CI-Build
on:
push:
branches:
- develop
- llvm_10
paths-ignore:
- '**.md'
pull_request:
branches:
- develop
- llvm_10
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Build Source
run: .\Build-All.ps1 -ForceClean -BuildMode Source
- name: Publish build logs
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v1
with:
name: Build Logs
path: .\BuildOutput\BinLogs
- name: Publish NuGET Packages
uses: actions/upload-artifact@v1
with:
name: Nuget Packages
path: .\BuildOutput\Nuget
- name: Run Tests
run: .\Invoke-UnitTests.ps1
- name: Publish test logs
if: always()
uses: actions/upload-artifact@v1
with:
name: Test Logs
path: .\BuildOutput\Test-Results
build-docs:
runs-on: windows-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Build Docs
run: .\Build-All.ps1 -ForceClean -BuildMode Docs
- name: Upload docs artifact
uses: actions/upload-artifact@v1
with:
name: Docs
path: .\BuildOutput\docs\current
- name: Publish build logs
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v1
with:
name: Build Logs
path: .\BuildOutput\BinLogs