This commit is contained in:
Mihai Fufezan 2024-07-27 22:02:18 +03:00
parent 6f3ada27ae
commit b3992814e6
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg
4 changed files with 7 additions and 28 deletions

View file

@ -3,11 +3,9 @@ name: Build Hyprland
on: [push, pull_request, workflow_dispatch] on: [push, pull_request, workflow_dispatch]
jobs: jobs:
gcc: gcc:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland (Arch)" name: "Build Hyprland (Arch)"
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: gcc
cancel-in-progress: true
container: container:
image: archlinux image: archlinux
steps: steps:
@ -47,11 +45,9 @@ jobs:
path: Hyprland.tar.xz path: Hyprland.tar.xz
meson: meson:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland with Meson (Arch)" name: "Build Hyprland with Meson (Arch)"
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: meson
cancel-in-progress: true
container: container:
image: archlinux image: archlinux
steps: steps:
@ -70,11 +66,9 @@ jobs:
run: ninja -C build run: ninja -C build
no-pch: no-pch:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland without precompiled headers (Arch)" name: "Build Hyprland without precompiled headers (Arch)"
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: nopch
cancel-in-progress: true
container: container:
image: archlinux image: archlinux
steps: steps:
@ -92,11 +86,9 @@ jobs:
run: make nopch run: make nopch
noxwayland: noxwayland:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland in pure Wayland (Arch)" name: "Build Hyprland in pure Wayland (Arch)"
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: noxwayland
cancel-in-progress: true
container: container:
image: archlinux image: archlinux
steps: steps:
@ -115,11 +107,9 @@ jobs:
run: make release run: make release
clang-format: clang-format:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Code Style (Arch)" name: "Code Style (Arch)"
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: clangformat
cancel-in-progress: true
container: container:
image: archlinux image: archlinux
steps: steps:

View file

@ -12,9 +12,6 @@ jobs:
main: main:
name: Build man pages name: Build man pages
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: man
cancel-in-progress: true
steps: steps:
- name: Install deps - name: Install deps
run: sudo apt install pandoc run: sudo apt install pandoc

View file

@ -5,17 +5,11 @@ on: [push, pull_request, workflow_dispatch]
jobs: jobs:
update-inputs: update-inputs:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
concurrency:
group: nixupdateinputs
cancel-in-progress: true
uses: ./.github/workflows/nix-update-inputs.yml uses: ./.github/workflows/nix-update-inputs.yml
secrets: inherit secrets: inherit
build: 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')
concurrency:
group: nixbuild
cancel-in-progress: true
needs: update-inputs needs: update-inputs
uses: ./.github/workflows/nix-build.yml uses: ./.github/workflows/nix-build.yml
secrets: inherit secrets: inherit

View file

@ -4,11 +4,9 @@ on: [push, pull_request]
jobs: jobs:
flawfinder: flawfinder:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: Flawfinder Checks name: Flawfinder Checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: security
cancel-in-progress: true
permissions: permissions:
actions: read actions: read
contents: read contents: read