diff options
author | Charles Giessen <[email protected]> | 2024-10-22 11:33:05 -0500 |
---|---|---|
committer | Charles Giessen <[email protected]> | 2024-10-22 10:42:45 -0600 |
commit | e271cfd4809ed133cadc6c3de7903e59628b3d8a (patch) | |
tree | 7ec890a3ca5530abc0d871e5901304a7c3287c83 /.github/workflows | |
parent | b955ae0edb4f02074bfbf134ccc1980e83122d30 (diff) | |
download | Vulkan-Headers-e271cfd4809ed133cadc6c3de7903e59628b3d8a.tar.gz Vulkan-Headers-e271cfd4809ed133cadc6c3de7903e59628b3d8a.zip |
ci: Only run once if pushing to main repo branch
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d393e96..718edf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,6 @@ name: ci on: push: pull_request: - branches: - - main env: CMAKE_GENERATOR: Ninja @@ -19,6 +17,7 @@ permissions: jobs: cmake-unix: runs-on: ${{ matrix.os }} + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name strategy: matrix: os: [ ubuntu-latest, macos-latest ] @@ -37,6 +36,7 @@ jobs: cmake-windows: runs-on: windows-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name strategy: matrix: cmake-version: [ '3.15', 'latest'] @@ -54,6 +54,7 @@ jobs: windows_clang: runs-on: windows-2022 + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name strategy: matrix: compiler: [ clang, clang-cl ] @@ -75,6 +76,7 @@ jobs: reuse: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v4 - name: REUSE Compliance Check |