Skip to content

test

test #14

Workflow file for this run

name: Benchmark
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
cancel-timeout-minutes: 360
timeout-minutes: 360
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: |
cd ./src
dotnet restore
- name: Build
run: |
cd ./src
dotnet build --no-restore -c Release
- name: Run Benchmarks
run: |
dotnet run --no-build -c Release --project ./tools/EvenireDB.Tools.Benchmark/EvenireDB.Tools.Benchmark.csproj -- --exporters JSON --filter EvenireDB.Benchmark*
- name: Upload Benchmark Results
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
cd ./BenchmarkDotNet.Artifacts/results/
az storage container create --name results --account-name saevenirebenchmarks --connection-string "${{ secrets.SA_CONN_STR }}"
az storage blob upload-batch --account-name saevenirebenchmarks --destination results --destination-path "${{ github.run_id }}" --pattern *.json --source . --connection-string "${{ secrets.SA_CONN_STR }}"