diff --git a/.github/workflows/publish-documentation.yml b/.github/workflows/publish-documentation.yml index d457b25..1525949 100644 --- a/.github/workflows/publish-documentation.yml +++ b/.github/workflows/publish-documentation.yml @@ -1,11 +1,7 @@ name: 'Publish documentation' on: - workflow_run: - workflows: ['build'] - - types: - - completed + workflow_dispatch: permissions: actions: read diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9c2fa58..bf96035 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -215,37 +215,37 @@ jobs: working-directory: ${{ runner.temp }}/${{ env.nuget-packages-directory }} dotnet-sdk-version: ${{ env.dotnet-sdk-version }}' - # benchmark: - # if: ${{ github.env.is_release || vars.BENCHMARKDOTNET_RUN_OVERRIDE == 'true' }} - # name: Benchmark with .NET CLI on ${{ matrix.os }} - # needs: [build] - # strategy: - # matrix: - # os: [ubuntu-latest, windows-latest, macos-latest] - # runs-on: ${{ matrix.os }} - # steps: - # - name: 'Checkout ${{ github.head_ref || github.ref }}' - # uses: actions/checkout@v5 - # - name: Install .NET SDK - # uses: actions/setup-dotnet@v4 - # with: - # dotnet-version: | - # 8.x - # 9.x - # - name: Download Build - # uses: actions/download-artifact@v5 - # with: - # name: build - # - name: Benchmark - # working-directory: ${{ vars.BENCHMARKDOTNET_WORKING_DIRECTORY }} - # run: dotnet run --configuration ${{ env.build-configuration }} /p:Platform=${{ env.build-platform }} --framework ${{ vars.DEFAULT_BUILD_FRAMEWORK }} --runtimes ${{ vars.BENCHMARKDOTNET_RUNTIMES }} --filter ${{ vars.BENCHMARKDOTNET_FILTER }} --artifacts ${{ runner.temp }}/benchmarks/ --exporters GitHub --memory --iterationTime 100 --join - # - name: Upload Benchmark Results - # uses: actions/upload-artifact@v4 - # with: - # name: benchmark-${{ matrix.os }} - # path: | - # ${{ runner.temp }}/benchmarks/**/*-report-github.md - # - name: Write Benchmark Summary - # shell: bash - # run: cat **/*-report-github.md > $GITHUB_STEP_SUMMARY - # working-directory: ${{ runner.temp }}/benchmarks/ + benchmark: + if: ${{ github.env.is_release || vars.BENCHMARKDOTNET_RUN_OVERRIDE == 'true' }} + name: Benchmark with .NET CLI on ${{ matrix.os }} + needs: [build] + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: 'Checkout ${{ github.head_ref || github.ref }}' + uses: actions/checkout@v5 + - name: Install .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.x + 9.x + - name: Download Build + uses: actions/download-artifact@v5 + with: + name: build + - name: Benchmark + working-directory: ${{ vars.BENCHMARKDOTNET_WORKING_DIRECTORY }} + run: dotnet run --configuration ${{ env.build-configuration }} /p:Platform=${{ env.build-platform }} --framework ${{ vars.DEFAULT_BUILD_FRAMEWORK }} --runtimes ${{ vars.BENCHMARKDOTNET_RUNTIMES }} --filter ${{ vars.BENCHMARKDOTNET_FILTER }} --artifacts ${{ runner.temp }}/benchmarks/ --exporters GitHub --memory --iterationTime 100 --join + - name: Upload Benchmark Results + uses: actions/upload-artifact@v4 + with: + name: benchmark-${{ matrix.os }} + path: | + ${{ runner.temp }}/benchmarks/**/*-report-github.md + - name: Write Benchmark Summary + shell: bash + run: cat **/*-report-github.md > $GITHUB_STEP_SUMMARY + working-directory: ${{ runner.temp }}/benchmarks/