Dummy change #184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**/*.* |