aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2024-07-27 22:17:05 +0300
committerGitHub <[email protected]>2024-07-27 22:17:05 +0300
commit04b40ea2ec85dd1d74ff18edc046a233b65024ac (patch)
treeb9bb9550b214f5727ef8be0d6a5b3770aededa9d /.github/workflows
parent55ceca4cdd8f4b3980d2840b85f6b91778a24eab (diff)
downloadHyprland-04b40ea2ec85dd1d74ff18edc046a233b65024ac.tar.gz
Hyprland-04b40ea2ec85dd1d74ff18edc046a233b65024ac.zip
CI: only run once for PRs with branches from original repo (#7075)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yaml5
-rw-r--r--.github/workflows/nix-ci.yml2
-rw-r--r--.github/workflows/security-checks.yml1
3 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 6d25e027..7739d2b2 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -3,6 +3,7 @@ name: Build Hyprland
on: [push, pull_request, workflow_dispatch]
jobs:
gcc:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland (Arch)"
runs-on: ubuntu-latest
container:
@@ -44,6 +45,7 @@ jobs:
path: Hyprland.tar.xz
meson:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland with Meson (Arch)"
runs-on: ubuntu-latest
container:
@@ -64,6 +66,7 @@ jobs:
run: ninja -C build
no-pch:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland without precompiled headers (Arch)"
runs-on: ubuntu-latest
container:
@@ -83,6 +86,7 @@ jobs:
run: make nopch
noxwayland:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland in pure Wayland (Arch)"
runs-on: ubuntu-latest
container:
@@ -103,6 +107,7 @@ jobs:
run: make release
clang-format:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Code Style (Arch)"
runs-on: ubuntu-latest
container:
diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml
index a66307c4..b25ed9aa 100644
--- a/.github/workflows/nix-ci.yml
+++ b/.github/workflows/nix-ci.yml
@@ -9,7 +9,7 @@ jobs:
secrets: inherit
build:
- if: always() && !cancelled() && !contains(needs.*.result, 'failure')
+ if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork) && !contains(needs.*.result, 'failure')
needs: update-inputs
uses: ./.github/workflows/nix-build.yml
secrets: inherit
diff --git a/.github/workflows/security-checks.yml b/.github/workflows/security-checks.yml
index 564013cf..4f539132 100644
--- a/.github/workflows/security-checks.yml
+++ b/.github/workflows/security-checks.yml
@@ -4,6 +4,7 @@ on: [push, pull_request]
jobs:
flawfinder:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: Flawfinder Checks
runs-on: ubuntu-latest
permissions: