Skip to content

Commit 8f7fdc9

Browse files
committed
ci: don't run on draft PRs
1 parent cde1c0f commit 8f7fdc9

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

.github/workflows/linux_build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Linux Build
33
on:
44
push:
55
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
- ready_for_review
611

712
env:
813
GH_CACHE_KEY: 3
@@ -17,6 +22,7 @@ jobs:
1722
{build_type: Debug, arch: x86_64, name: "D3D9 + Sokol + Asserts", cmake: "-DOPTION_D3D9=ON -DOPTION_SOKOL=ON -DOPTION_DEBUG_ASSERT=ON"},
1823
]
1924
name: ${{matrix.env.build_type}} ${{matrix.env.arch}}
25+
if: github.event.pull_request.draft != true
2026
runs-on: ubuntu-latest
2127
container:
2228
image: "debian:buster"
@@ -68,6 +74,7 @@ jobs:
6874
{build_type: Release, arch: x86_64, name: "Scripts Check", cmake: "-DOPTION_CHECK_SCRIPTS=ON "},
6975
]
7076
name: Check build ${{matrix.env.build_type}} ${{matrix.env.arch}} ${{matrix.env.name}}
77+
if: github.event.pull_request.draft != true
7178
runs-on: ubuntu-latest
7279
steps:
7380
- uses: actions/checkout@v3

.github/workflows/macos_build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: MacOS Build
33
on:
44
push:
55
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
- ready_for_review
611

712
env:
813
VULKAN_SDK_VERSION: '1.3.250.1'
@@ -20,6 +25,7 @@ jobs:
2025
{build_type: Release, cmake: ""}
2126
]
2227
name: ${{matrix.env.build_type}}
28+
if: github.event.pull_request.draft != true
2329
runs-on: macos-latest
2430
steps:
2531
- uses: actions/checkout@v3

.github/workflows/nix_build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Nix Build
33
on:
44
push:
55
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
- ready_for_review
611

712
env:
813
GH_CACHE_KEY: 1
@@ -24,6 +29,7 @@ jobs:
2429
# {name: "Debug", flake: "_debug"},
2530
# ]
2631
# name: ${{matrix.target.pkg}} ${{matrix.env.name}}
32+
# if: github.event.pull_request.draft != true
2733
# runs-on: ${{matrix.target.on}}
2834
# steps:
2935
# - uses: actions/checkout@v3
@@ -38,6 +44,7 @@ jobs:
3844
# - run: nix build ".#platform_${{matrix.target.pkg}}${{matrix.env.flake}}"
3945
check:
4046
name: Check
47+
if: github.event.pull_request.draft != true
4148
runs-on: ubuntu-latest
4249
steps:
4350
- uses: actions/checkout@v3

.github/workflows/windows_msvc_build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Windows MSVC Build
33
on:
44
push:
55
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
- ready_for_review
611

712
env:
813
VCPKG_COMMIT_ID: '21bbb14c4113b89cd06402e852e075341722304f'
@@ -22,6 +27,7 @@ jobs:
2227
#{bits: 64, arch_installed: x64, build_type: Release, arch_name: ARM, arch: amd64_arm64}
2328
]
2429
name: ${{matrix.env.build_type}} ${{matrix.env.arch_name}} ${{matrix.env.bits}} bits
30+
if: github.event.pull_request.draft != true
2531
env:
2632
VCPKG_DEFAULT_TRIPLET: ${{matrix.env.arch}}-windows
2733
runs-on: windows-latest

.github/workflows/windows_msys_build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Windows MSYS Build
33
on:
44
push:
55
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
- ready_for_review
611

712
env:
813
GH_CACHE_KEY: 8
@@ -18,6 +23,7 @@ jobs:
1823
{sys: mingw64, build_type: Release, arch: x86_64, arch_zip: x64},
1924
]
2025
name: ${{matrix.env.build_type}} ${{matrix.env.sys}}
26+
if: github.event.pull_request.draft != true
2127
defaults:
2228
run:
2329
shell: msys2 {0}

0 commit comments

Comments
 (0)