Remove Object Pooling #1012
Workflow file for this run
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: .NET | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: windows-2022 | |
rid: win-x64 | |
- os: ubuntu-22.04 | |
rid: linux-x64 | |
- os: macos-12 | |
rid: osx-x64 | |
runs-on: ${{ matrix.os }} | |
env: | |
AppVeyorBuild: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET 9 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-quality: preview | |
dotnet-version: 9.0.x | |
- name: Setup .NET 8 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup .NET 7 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.0.x | |
- name: Setup .NET 6 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
working-directory: src | |
run: dotnet restore | |
- name: Build | |
working-directory: src | |
run: dotnet build -c Release /p:SignAssembly=true | |
- name: E2E Test (JIT) | |
working-directory: src/Tests/FlatSharpEndToEndTests | |
run: dotnet test -c Release /p:SignAssembly=true --verbosity normal | |
- name: E2E Test (AOT) | |
working-directory: src/Tests/FlatSharpEndToEndTests | |
env: | |
BuildAot: 'true' | |
run: | | |
dotnet publish -c Release -f net9.0 -r ${{ matrix.rid }} | |
./bin/Release/net9.0/${{ matrix.rid }}/publish/FlatSharpEndToEndTests | |
- name: Poolable E2E Test | |
working-directory: src/Tests/FlatSharpPoolableEndToEndTests | |
run: dotnet test -c Release /p:SignAssembly=true --verbosity normal | |
- name: Compiler Test | |
working-directory: src/Tests/FlatSharpCompilerTests | |
run: dotnet test -c Release /p:SignAssembly=true --verbosity normal | |
- if: runner.os == 'Windows' | |
name: Upload Packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Packages | |
path: ./**/*.nupkg |