-
-
Notifications
You must be signed in to change notification settings - Fork 51
55 lines (46 loc) · 1.57 KB
/
charp8build.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
name: C# 8 Build Verification
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
env:
AppVeyorBuild: true
steps:
- uses: actions/checkout@v2
- name: Setup .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: src
run: dotnet restore
- name: Build FlatSharp.Compiler
working-directory: src/FlatSharp.Compiler
run: dotnet build -c Release
- name: Run FlatSharp.Compiler
# You may pin to the exact commit or the version.
# uses: Amadevus/pwsh-script@97a8b211a5922816aa8a69ced41fa32f23477186
uses: Amadevus/[email protected]
with:
# PowerShell script to execute in Actions-hydrated context
script: |
$fbs = (gci -r src/tests/FlatsharpEndToEndTests/*.fbs | where Name -ne "AccessModifiers.fbs") -join ";"
dotnet src/FlatSharp.Compiler/bin/Release/net7.0/FlatSharp.Compiler.dll --nullable-warnings false --normalize-field-names true --input "$fbs" -o src/tests/CompileTests/CSharp8
- name: Build
working-directory: src/tests/CompileTests/CSharp8
run: dotnet build -c Release
- name: Upload Files
uses: actions/upload-artifact@v3
if: failure()
with:
name: generated-csharp
path: src/tests/CompileTests/CSharp8/**/*.*