mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-29 05:10:20 +02:00
ci: only run on specific paths
This avoids the previously applied paths-ignore exception workaround, and makes runs as strict as (reasonably) possible. Only directories known to affect builds will trigger builds, as well as any `.cpp` or `.h` files to account for any new folders created - though these should still be added to the workflow later Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
parent
f086233186
commit
dc3a8dcfed
59
.github/workflows/codeql.yml
vendored
59
.github/workflows/codeql.yml
vendored
@ -2,37 +2,48 @@ name: "CodeQL Code Scanning"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# NOTE: `!` doesn't work with `paths-ignore` :(
|
|
||||||
# So we a catch-all glob instead
|
|
||||||
# https://github.com/orgs/community/discussions/25369#discussioncomment-3247674
|
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
# File types
|
||||||
- "!.github/**"
|
- "**.cpp"
|
||||||
- ".github/workflows/codeql.yml"
|
- "**.h"
|
||||||
- "!flatpak/"
|
- "**.java"
|
||||||
- "!nix/"
|
|
||||||
- "!scripts/"
|
|
||||||
|
|
||||||
- "!.git*"
|
# Directories
|
||||||
- "!.envrc"
|
- "buildconfig/"
|
||||||
- "!**.md"
|
- "cmake/"
|
||||||
|
- "launcher/"
|
||||||
|
- "libraries/"
|
||||||
|
- "program_info/"
|
||||||
|
- "tests/"
|
||||||
|
|
||||||
|
# Files
|
||||||
|
- "CMakeLists.txt"
|
||||||
- "COPYING.md"
|
- "COPYING.md"
|
||||||
- "!renovate.json"
|
|
||||||
|
# Workflows
|
||||||
|
- ".github/codeql"
|
||||||
|
- ".github/workflows/codeql.yml"
|
||||||
pull_request:
|
pull_request:
|
||||||
# See above
|
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
# File types
|
||||||
- "!.github/**"
|
- "**.cpp"
|
||||||
- ".github/workflows/codeql.yml"
|
- "**.h"
|
||||||
- "!flatpak/"
|
|
||||||
- "!nix/"
|
|
||||||
- "!scripts/"
|
|
||||||
|
|
||||||
- "!.git*"
|
# Directories
|
||||||
- "!.envrc"
|
- "buildconfig/"
|
||||||
- "!**.md"
|
- "cmake/"
|
||||||
|
- "launcher/"
|
||||||
|
- "libraries/"
|
||||||
|
- "program_info/"
|
||||||
|
- "tests/"
|
||||||
|
|
||||||
|
# Files
|
||||||
|
- "CMakeLists.txt"
|
||||||
- "COPYING.md"
|
- "COPYING.md"
|
||||||
- "!renovate.json"
|
|
||||||
|
# Workflows
|
||||||
|
- ".github/codeql"
|
||||||
|
- ".github/workflows/codeql.yml"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
61
.github/workflows/flatpak.yml
vendored
61
.github/workflows/flatpak.yml
vendored
@ -5,35 +5,52 @@ on:
|
|||||||
# We don't do anything with these artifacts on releases. They go to Flathub
|
# We don't do anything with these artifacts on releases. They go to Flathub
|
||||||
tags-ignore:
|
tags-ignore:
|
||||||
- "*"
|
- "*"
|
||||||
# NOTE: `!` doesn't work with `paths-ignore` :(
|
|
||||||
# So we a catch-all glob instead
|
|
||||||
# https://github.com/orgs/community/discussions/25369#discussioncomment-3247674
|
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
# File types
|
||||||
- "!.github/**"
|
- "**.cpp"
|
||||||
- ".github/workflows/flatpak.yml"
|
- "**.h"
|
||||||
- "!nix/"
|
- "**.java"
|
||||||
- "!scripts/"
|
|
||||||
|
|
||||||
- "!.git*"
|
# Build files
|
||||||
- "!.envrc"
|
- "flatpak/"
|
||||||
- "!**.md"
|
|
||||||
|
# Directories
|
||||||
|
- "buildconfig/"
|
||||||
|
- "cmake/"
|
||||||
|
- "launcher/"
|
||||||
|
- "libraries/"
|
||||||
|
- "program_info/"
|
||||||
|
- "tests/"
|
||||||
|
|
||||||
|
# Files
|
||||||
|
- "CMakeLists.txt"
|
||||||
- "COPYING.md"
|
- "COPYING.md"
|
||||||
- "!renovate.json"
|
|
||||||
|
# Workflows
|
||||||
|
- ".github/workflows/flatpak.yml"
|
||||||
pull_request:
|
pull_request:
|
||||||
# See above
|
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
# File types
|
||||||
- "!.github/**"
|
- "**.cpp"
|
||||||
- ".github/workflows/flatpak.yml"
|
- "**.h"
|
||||||
- "!nix/"
|
|
||||||
- "!scripts/"
|
|
||||||
|
|
||||||
- "!.git*"
|
# Build files
|
||||||
- "!.envrc"
|
- "flatpak/"
|
||||||
- "!**.md"
|
|
||||||
|
# Directories
|
||||||
|
- "buildconfig/"
|
||||||
|
- "cmake/"
|
||||||
|
- "launcher/"
|
||||||
|
- "libraries/"
|
||||||
|
- "program_info/"
|
||||||
|
- "tests/"
|
||||||
|
|
||||||
|
# Files
|
||||||
|
- "CMakeLists.txt"
|
||||||
- "COPYING.md"
|
- "COPYING.md"
|
||||||
- "!renovate.json"
|
|
||||||
|
# Workflows
|
||||||
|
- ".github/workflows/flatpak.yml"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
64
.github/workflows/nix.yml
vendored
64
.github/workflows/nix.yml
vendored
@ -4,34 +4,56 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "*"
|
- "*"
|
||||||
# NOTE: `!` doesn't work with `paths-ignore` :(
|
|
||||||
# So we a catch-all glob instead
|
|
||||||
# https://github.com/orgs/community/discussions/25369#discussioncomment-3247674
|
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
# File types
|
||||||
- "!.github/**"
|
- "**.cpp"
|
||||||
- ".github/workflows/nix.yml"
|
- "**.h"
|
||||||
- "!flatpak/"
|
- "**.java"
|
||||||
- "!scripts/"
|
|
||||||
|
|
||||||
- "!.git*"
|
# Build files
|
||||||
- "!.envrc"
|
- "**.nix"
|
||||||
- "!**.md"
|
- "nix/"
|
||||||
|
- "flake.lock"
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
- "buildconfig/"
|
||||||
|
- "cmake/"
|
||||||
|
- "launcher/"
|
||||||
|
- "libraries/"
|
||||||
|
- "program_info/"
|
||||||
|
- "tests/"
|
||||||
|
|
||||||
|
# Files
|
||||||
|
- "CMakeLists.txt"
|
||||||
- "COPYING.md"
|
- "COPYING.md"
|
||||||
- "!renovate.json"
|
|
||||||
|
# Workflows
|
||||||
|
- ".github/workflows/nix.yml"
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
# File types
|
||||||
- "!.github/**"
|
- "**.cpp"
|
||||||
- ".github/workflows/nix.yml"
|
- "**.h"
|
||||||
- "!flatpak/"
|
|
||||||
- "!scripts/"
|
|
||||||
|
|
||||||
- "!.git*"
|
# Build files
|
||||||
- "!.envrc"
|
- "**.nix"
|
||||||
- "!**.md"
|
- "nix/"
|
||||||
|
- "flake.lock"
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
- "buildconfig/"
|
||||||
|
- "cmake/"
|
||||||
|
- "launcher/"
|
||||||
|
- "libraries/"
|
||||||
|
- "program_info/"
|
||||||
|
- "tests/"
|
||||||
|
|
||||||
|
# Files
|
||||||
|
- "CMakeLists.txt"
|
||||||
- "COPYING.md"
|
- "COPYING.md"
|
||||||
- "!renovate.json"
|
|
||||||
|
# Workflows
|
||||||
|
- ".github/workflows/nix.yml"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
61
.github/workflows/trigger_builds.yml
vendored
61
.github/workflows/trigger_builds.yml
vendored
@ -4,39 +4,48 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- "renovate/**"
|
- "renovate/**"
|
||||||
# NOTE: `!` doesn't work with `paths-ignore` :(
|
|
||||||
# So we a catch-all glob instead
|
|
||||||
# https://github.com/orgs/community/discussions/25369#discussioncomment-3247674
|
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
# File types
|
||||||
- "!.github/**"
|
- "**.cpp"
|
||||||
|
- "**.h"
|
||||||
|
- "**.java"
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
- "buildconfig/"
|
||||||
|
- "cmake/"
|
||||||
|
- "launcher/"
|
||||||
|
- "libraries/"
|
||||||
|
- "program_info/"
|
||||||
|
- "tests/"
|
||||||
|
|
||||||
|
# Files
|
||||||
|
- "CMakeLists.txt"
|
||||||
|
- "COPYING.md"
|
||||||
|
|
||||||
|
# Workflows
|
||||||
- ".github/workflows/build.yml"
|
- ".github/workflows/build.yml"
|
||||||
- ".github/workflows/trigger_builds.yml"
|
- ".github/workflows/trigger_builds.yml"
|
||||||
- "!flatpak/"
|
|
||||||
- "!nix/"
|
|
||||||
- "!scripts/"
|
|
||||||
|
|
||||||
- "!.git*"
|
|
||||||
- "!.envrc"
|
|
||||||
- "!**.md"
|
|
||||||
- "COPYING.md"
|
|
||||||
- "!renovate.json"
|
|
||||||
pull_request:
|
pull_request:
|
||||||
# See above
|
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
# File types
|
||||||
- "!.github/**"
|
- "**.cpp"
|
||||||
|
- "**.h"
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
- "buildconfig/"
|
||||||
|
- "cmake/"
|
||||||
|
- "launcher/"
|
||||||
|
- "libraries/"
|
||||||
|
- "program_info/"
|
||||||
|
- "tests/"
|
||||||
|
|
||||||
|
# Files
|
||||||
|
- "CMakeLists.txt"
|
||||||
|
- "COPYING.md"
|
||||||
|
|
||||||
|
# Workflows
|
||||||
- ".github/workflows/build.yml"
|
- ".github/workflows/build.yml"
|
||||||
- ".github/workflows/trigger_builds.yml"
|
- ".github/workflows/trigger_builds.yml"
|
||||||
- "!flatpak/"
|
|
||||||
- "!nix/"
|
|
||||||
- "!scripts/"
|
|
||||||
|
|
||||||
- "!.git*"
|
|
||||||
- "!.envrc"
|
|
||||||
- "!**.md"
|
|
||||||
- "COPYING.md"
|
|
||||||
- "!renovate.json"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user