-
Notifications
You must be signed in to change notification settings - Fork 40
64 lines (54 loc) · 1.84 KB
/
build-runtime-cs.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
name: Bebop .NET Runtime
on:
workflow_dispatch:
push:
paths:
- "Runtime/C#/**"
pull_request:
paths:
- "Runtime/C#/**"
jobs:
build-runtime:
env:
TEST_ROOT: ${{github.workspace}}/Laboratory/C#/Test
RUNTIME_ROOT: ${{github.workspace}}/Runtime/C#
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: Get Enviorment Variables
id: dotenv
uses: falti/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
5.0.x
6.0.x
7.0.x
include-prerelease: true
- name: Generate Output.g.cs
working-directory: "./Laboratory/C#"
run: dotnet run --project ../../Compiler/ --cs "./GeneratedTestCode/Output.g.cs" --namespace Bebop.Codegen --files $(ls -p ../Schemas/Valid/*.bop | tr '\n' ' ')
- name: Run Test .NET 6
run: dotnet test -c Release -f net6.0
working-directory: ${{env.TEST_ROOT}}
- name: Run Test .NET 5
run: dotnet test -c Release -f net5.0
working-directory: ${{env.TEST_ROOT}}
- name: Run Test .NET Framework 4.7.2
run: dotnet test -c Release -f net472
working-directory: ${{env.TEST_ROOT}}
- name: Run Test .NET Framework 4.8
run: dotnet test -c Release -f net48
working-directory: ${{env.TEST_ROOT}}
- name: Restore Project
run: dotnet restore
working-directory: ${{env.RUNTIME_ROOT}}
- name: Build Runtime
run: dotnet build -c Release -p:ReleaseVersion=${{ steps.dotenv.outputs.version }}
working-directory: ${{env.RUNTIME_ROOT}}
- name: Upload Package
uses: actions/upload-artifact@v2
with:
name: bebop-runtime-cs-latest
path: ${{env.RUNTIME_ROOT}}/bin/Release/*.nupkg