Skip to content

Commit 1971178

Browse files
authored
Connect self-hosted runner to PR.
1 parent 4d388b8 commit 1971178

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/build-on-pr.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: FAKE Build on PR
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
win-build:
9+
name: Windows Build (No Tests)
10+
runs-on: windows-latest
11+
defaults:
12+
run:
13+
shell: cmd
14+
steps:
15+
- name: System Info
16+
run: systeminfo
17+
18+
- uses: actions/checkout@v2
19+
20+
- name: Setup .NET Core
21+
uses: actions/setup-dotnet@v1
22+
23+
- name: Build
24+
run: ./build.cmd DotnetBuild
25+
env:
26+
# Work around https://github.com/actions/setup-dotnet/issues/29
27+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
28+
CI: true
29+
30+
linux-build:
31+
name: Linux Build (No Tests)
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: System Info
35+
run: lscpu
36+
37+
- uses: actions/checkout@v1
38+
39+
- name: Setup .NET Core
40+
uses: actions/setup-dotnet@v1
41+
42+
- name: Build
43+
run: |
44+
chmod +x ./build.sh
45+
./build.sh DotnetBuild
46+
env:
47+
# Work around https://github.com/actions/setup-dotnet/issues/29
48+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
49+
CI: true
50+
51+
linux-test-self-hosted:
52+
name: Linux Self-Hosted Test
53+
runs-on: self-hosted
54+
steps:
55+
- name: System Info
56+
run: lscpu
57+
58+
- uses: actions/checkout@v1
59+
60+
- name: OpenCL Info
61+
run: clinfo
62+
63+
- name: Build And Test
64+
run: |
65+
chmod +x ./build.sh
66+
./build.sh
67+
env:
68+
# Work around https://github.com/actions/setup-dotnet/issues/29
69+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
70+
CI: true

0 commit comments

Comments
 (0)