From 73fe8fe0de1fb3bc93c804a674999bc505452c48 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 21 Sep 2025 12:22:47 +0100 Subject: [PATCH] ci: remove benchmark workflow Signed-off-by: Frazer Smith --- .github/workflows/benchmark.yml | 90 --------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 .github/workflows/benchmark.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 384bbf77..00000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: Benchmark PR - -on: - pull_request_target: - types: [labeled] - -permissions: - contents: read - -jobs: - benchmark: - if: ${{ github.event.label.name == 'benchmark' }} - runs-on: ubuntu-latest - permissions: - contents: read - outputs: - PR-BENCH: ${{ steps.benchmark-pr.outputs.BENCH_RESULT }} - MAIN-BENCH: ${{ steps.benchmark-main.outputs.BENCH_RESULT }} - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - ref: ${{github.event.pull_request.head.sha}} - repository: ${{github.event.pull_request.head.repo.full_name}} - - - uses: actions/setup-node@v4 - with: - check-latest: true - node-version: 20 - - - name: Install - run: | - npm install --ignore-scripts - - - name: Run benchmark - id: benchmark-pr - run: | - npm run --silent bench > ./bench-result - content=$(cat ./bench-result) - content="${content//'%'/'%25'}" - content="${content//$'\n'/'%0A'}" - content="${content//$'\r'/'%0D'}" - echo "::set-output name=BENCH_RESULT::$content" - - # main benchmark - - uses: actions/checkout@v4 - with: - ref: 'main' - persist-credentials: false - - - name: Install - run: | - npm install --ignore-scripts - - - name: Run benchmark - id: benchmark-main - run: | - npm run --silent bench > ./bench-result - content=$(cat ./bench-result) - content="${content//'%'/'%25'}" - content="${content//$'\n'/'%0A'}" - content="${content//$'\r'/'%0D'}" - echo "::set-output name=BENCH_RESULT::$content" - - output-benchmark: - if: "always()" - needs: [benchmark] - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - name: Comment PR - uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - message: | - **PR**: - ``` - ${{ needs.benchmark.outputs.PR-BENCH }} - ``` - **MAIN**: - ``` - ${{ needs.benchmark.outputs.MAIN-BENCH }} - ``` - - - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0 - with: - labels: | - benchmark - github_token: ${{ secrets.GITHUB_TOKEN }}