-
Notifications
You must be signed in to change notification settings - Fork 7
70 lines (57 loc) · 1.58 KB
/
build-on-pr.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
name: FAKE Build on PR
on:
pull_request:
workflow_dispatch:
jobs:
win-build:
name: Windows Build (No Tests)
runs-on: windows-latest
defaults:
run:
shell: cmd
steps:
- name: System Info
run: systeminfo
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- name: Build
run: ./build.cmd DotnetBuild
env:
# Work around https://github.com/actions/setup-dotnet/issues/29
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
CI: true
linux-build:
name: Linux Build (No Tests)
runs-on: ubuntu-latest
steps:
- name: System Info
run: lscpu
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- name: Build
run: |
chmod +x ./build.sh
./build.sh DotnetBuild
env:
# Work around https://github.com/actions/setup-dotnet/issues/29
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
CI: true
linux-test-self-hosted:
name: Linux Self-Hosted Test
runs-on: self-hosted
steps:
- name: System Info
run: lscpu
- uses: actions/checkout@v1
- name: OpenCL Info
run: clinfo
- name: Build And Test
run: |
chmod +x ./build.sh
./build.sh
env:
# Work around https://github.com/actions/setup-dotnet/issues/29
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
CI: true