diff --git a/.github/workflows/benchpr.yml b/.github/workflows/benchpr.yml new file mode 100644 index 00000000..c45828e8 --- /dev/null +++ b/.github/workflows/benchpr.yml @@ -0,0 +1,30 @@ +name: Benchmark + +on: + pull_request: + branches: [ main ] + +concurrency: benchmark_pr + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Benchmark + run: dotnet run --project "BitFaster.Caching.Benchmarks" -f net6.0 -c Release --filter *Lru* + - name: Publish Results + uses: actions/upload-artifact@v1 + with: + name: Benchmark Artifacts + path: BenchmarkDotNet.Artifacts \ No newline at end of file diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index 00342f29..d5464c35 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -1,4 +1,4 @@ -name: .NET Core +name: Build and Test on: push: