Skip to content

Commit a361ed6

Browse files
committed
Merge branch 'master' into net5
2 parents 1264c88 + 1ef43d3 commit a361ed6

3 files changed

Lines changed: 213 additions & 38 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
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
name: FAKE Build on Push
2+
3+
on:
4+
push:
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+
win-test:
31+
name: Windows Build And Test
32+
if: github.repository_owner != 'YaccConstructor'
33+
runs-on: windows-latest
34+
defaults:
35+
run:
36+
shell: cmd
37+
steps:
38+
- name: System Info
39+
run: systeminfo
40+
41+
- uses: actions/checkout@v2
42+
43+
- name: Setup .NET Core
44+
uses: actions/setup-dotnet@v1
45+
46+
- name: Install OpenCL
47+
run: |
48+
set NUGETDIR=C:\NUGET
49+
nuget install opencl-nug -Version 0.777.77 -OutputDirectory %NUGETDIR%
50+
dir %NUGETDIR%\opencl-nug.0.777.77\build\native\
51+
set OCL_ROOT=%NUGETDIR%\opencl-nug.0.777.77\build\native
52+
# Install OpenCL Runtime
53+
choco install opencl-intel-cpu-runtime
54+
# - name: Download "clinfo.exe"
55+
# uses: carlosperate/download-file-action@v1.0.3
56+
# with:
57+
# file-url: https://ci.appveyor.com/api/projects/oblomov/clinfo/artifacts/clinfo.exe?job=platform:+x64
58+
# file-name: clinfo.exe
59+
#
60+
# - name: OpenCL Info
61+
# run: clinfo.exe
62+
63+
- name: Build And Test
64+
run: ./build.cmd
65+
env:
66+
# Work around https://github.com/actions/setup-dotnet/issues/29
67+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
68+
CI: true
69+
70+
linux-build:
71+
name: Linux Build (No Tests)
72+
runs-on: ubuntu-latest
73+
steps:
74+
- name: System Info
75+
run: lscpu
76+
77+
- uses: actions/checkout@v1
78+
79+
- name: Setup .NET Core
80+
uses: actions/setup-dotnet@v1
81+
82+
- name: Build
83+
run: |
84+
chmod +x ./build.sh
85+
./build.sh DotnetBuild
86+
env:
87+
# Work around https://github.com/actions/setup-dotnet/issues/29
88+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
89+
CI: true
90+
91+
linux-test:
92+
name: Linux Build And Test
93+
if: github.repository_owner != 'YaccConstructor'
94+
runs-on: ubuntu-latest
95+
steps:
96+
- name: System Info
97+
run: lscpu
98+
99+
- uses: actions/checkout@v1
100+
101+
- name: Setup .NET Core
102+
uses: actions/setup-dotnet@v1
103+
104+
- name: Install OpenCL
105+
run: |
106+
chmod +x ./.github/workflows/install-ubuntu-dependencies.sh
107+
sudo ./.github/workflows/install-ubuntu-dependencies.sh
108+
- name: Download "clinfo.exe"
109+
run: sudo apt install clinfo
110+
111+
- name: OpenCL Info
112+
run: clinfo
113+
114+
- name: Build And Test
115+
run: |
116+
chmod +x ./build.sh
117+
./build.sh
118+
env:
119+
# Work around https://github.com/actions/setup-dotnet/issues/29
120+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
121+
CI: true
122+
123+
linux-test-self-hosted:
124+
name: Linux Self-Hosted Test
125+
if: github.repository_owner == 'YaccConstructor'
126+
runs-on: self-hosted
127+
steps:
128+
- name: System Info
129+
run: lscpu
130+
131+
- uses: actions/checkout@v1
132+
133+
- name: OpenCL Info
134+
run: clinfo
135+
136+
- name: Build And Test
137+
run: |
138+
chmod +x ./build.sh
139+
./build.sh
140+
env:
141+
# Work around https://github.com/actions/setup-dotnet/issues/29
142+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
143+
CI: true

.github/workflows/build.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)