From ea782711296c0a6182b790c6a4a22d7b1b836d1f Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 23 Dec 2025 11:03:07 +0100 Subject: [PATCH 1/3] Skip redundant PR workflows --- .github/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07245a8e..071d0def 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,7 @@ concurrency: jobs: clang-tidy: name: Run Clang Tidy + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-24.04 env: LLVM_VERSION: 21 @@ -64,6 +65,7 @@ jobs: verify-formatting: name: Verify Formatting + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-24.04 steps: - name: Checkout Source @@ -79,6 +81,7 @@ jobs: build-apiset-dumper: name: Build API Set Dumper + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: windows-latest steps: - name: Checkout Source @@ -105,6 +108,7 @@ jobs: create-emulation-root: name: Create Emulation Root + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} needs: [build-apiset-dumper] strategy: @@ -156,6 +160,7 @@ jobs: build: name: Build + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -311,6 +316,7 @@ jobs: # waiting for other platforms build-isolate: name: Build Isolate + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -363,6 +369,7 @@ jobs: test: name: Test + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} needs: [create-emulation-root, build] strategy: @@ -456,6 +463,7 @@ jobs: win-test: name: Windows Test + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: windows-latest needs: [create-emulation-root, build-isolate] strategy: @@ -519,6 +527,7 @@ jobs: smoke-test-node: name: Smoke Test Node.js + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-24.04 needs: [create-emulation-root, build] steps: @@ -551,6 +560,7 @@ jobs: smoke-test-mingw: name: Smoke Test MinGW x86_64 + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: windows-latest needs: [create-emulation-root, build] steps: @@ -577,6 +587,7 @@ jobs: smoke-test-android: name: Smoke Test Android + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} needs: [create-emulation-root, build] strategy: @@ -642,6 +653,7 @@ jobs: build-page: name: Build Page + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-latest needs: [create-emulation-root, build] steps: @@ -746,7 +758,7 @@ jobs: win-test, verify-formatting, ] - if: always() + if: ${{ always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository) }} steps: - uses: geekyeggo/delete-artifact@v5 continue-on-error: true From 9a7b9e553d1ac08703043033c08984424779f9b9 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 1 Jan 2026 11:37:06 +0100 Subject: [PATCH 2/3] Revert "Skip redundant PR workflows" This reverts commit ea782711296c0a6182b790c6a4a22d7b1b836d1f. --- .github/workflows/build.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 071d0def..07245a8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,6 @@ concurrency: jobs: clang-tidy: name: Run Clang Tidy - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-24.04 env: LLVM_VERSION: 21 @@ -65,7 +64,6 @@ jobs: verify-formatting: name: Verify Formatting - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-24.04 steps: - name: Checkout Source @@ -81,7 +79,6 @@ jobs: build-apiset-dumper: name: Build API Set Dumper - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: windows-latest steps: - name: Checkout Source @@ -108,7 +105,6 @@ jobs: create-emulation-root: name: Create Emulation Root - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} needs: [build-apiset-dumper] strategy: @@ -160,7 +156,6 @@ jobs: build: name: Build - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -316,7 +311,6 @@ jobs: # waiting for other platforms build-isolate: name: Build Isolate - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -369,7 +363,6 @@ jobs: test: name: Test - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} needs: [create-emulation-root, build] strategy: @@ -463,7 +456,6 @@ jobs: win-test: name: Windows Test - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: windows-latest needs: [create-emulation-root, build-isolate] strategy: @@ -527,7 +519,6 @@ jobs: smoke-test-node: name: Smoke Test Node.js - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-24.04 needs: [create-emulation-root, build] steps: @@ -560,7 +551,6 @@ jobs: smoke-test-mingw: name: Smoke Test MinGW x86_64 - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: windows-latest needs: [create-emulation-root, build] steps: @@ -587,7 +577,6 @@ jobs: smoke-test-android: name: Smoke Test Android - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ${{ matrix.runner }} needs: [create-emulation-root, build] strategy: @@ -653,7 +642,6 @@ jobs: build-page: name: Build Page - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-latest needs: [create-emulation-root, build] steps: @@ -758,7 +746,7 @@ jobs: win-test, verify-formatting, ] - if: ${{ always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository) }} + if: always() steps: - uses: geekyeggo/delete-artifact@v5 continue-on-error: true From f75929a3a405ca09e410472b2c8c74055cb51dcb Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 1 Jan 2026 11:37:29 +0100 Subject: [PATCH 3/3] Only run push actions for main branch --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07245a8e..7dbc114c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ name: Build on: push: branches: - - "**" + - "main" pull_request: branches: - "**"