Skip to content

Commit

Permalink
ci: don't run on draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
IonAgorria committed Jan 31, 2024
1 parent 24b3939 commit f6a37a3
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/linux_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Linux Build
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review

env:
GH_CACHE_KEY: 3
Expand All @@ -17,6 +22,7 @@ jobs:
{build_type: Debug, arch: x86_64, name: "D3D9 + Sokol + Asserts", cmake: "-DOPTION_D3D9=ON -DOPTION_SOKOL=ON -DOPTION_DEBUG_ASSERT=ON"},
]
name: ${{matrix.env.build_type}} ${{matrix.env.arch}}
if: github.event.pull_request.draft != true
runs-on: ubuntu-latest
container:
image: "debian:buster"
Expand Down Expand Up @@ -68,6 +74,7 @@ jobs:
{build_type: Release, arch: x86_64, name: "Scripts Check", cmake: "-DOPTION_CHECK_SCRIPTS=ON "},
]
name: Check build ${{matrix.env.build_type}} ${{matrix.env.arch}} ${{matrix.env.name}}
if: github.event.pull_request.draft != true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: MacOS Build
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review

env:
VULKAN_SDK_VERSION: '1.3.250.1'
Expand All @@ -20,6 +25,7 @@ jobs:
{build_type: Release, cmake: ""}
]
name: ${{matrix.env.build_type}}
if: github.event.pull_request.draft != true
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/nix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Nix Build
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review

env:
GH_CACHE_KEY: 1
Expand All @@ -24,6 +29,7 @@ jobs:
# {name: "Debug", flake: "_debug"},
# ]
# name: ${{matrix.target.pkg}} ${{matrix.env.name}}
# if: github.event.pull_request.draft != true
# runs-on: ${{matrix.target.on}}
# steps:
# - uses: actions/checkout@v3
Expand All @@ -38,6 +44,7 @@ jobs:
# - run: nix build ".#platform_${{matrix.target.pkg}}${{matrix.env.flake}}"
check:
name: Check
if: github.event.pull_request.draft != true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/windows_msvc_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Windows MSVC Build
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review

env:
VCPKG_COMMIT_ID: '21bbb14c4113b89cd06402e852e075341722304f'
Expand All @@ -22,6 +27,7 @@ jobs:
#{bits: 64, arch_installed: x64, build_type: Release, arch_name: ARM, arch: amd64_arm64}
]
name: ${{matrix.env.build_type}} ${{matrix.env.arch_name}} ${{matrix.env.bits}} bits
if: github.event.pull_request.draft != true
env:
VCPKG_DEFAULT_TRIPLET: ${{matrix.env.arch}}-windows
runs-on: windows-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/windows_msys_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Windows MSYS Build
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review

env:
GH_CACHE_KEY: 8
Expand All @@ -18,6 +23,7 @@ jobs:
{sys: mingw64, build_type: Release, arch: x86_64, arch_zip: x64},
]
name: ${{matrix.env.build_type}} ${{matrix.env.sys}}
if: github.event.pull_request.draft != true
defaults:
run:
shell: msys2 {0}
Expand Down

0 comments on commit f6a37a3

Please sign in to comment.