ci: add required checks jobs

This is a hack to make it easier for our GitHub branching rules to
require a single check to pass before merging. This lets us describe the
required checks in code rather than via the GH UI.
This commit is contained in:
Mitchell Hashimoto
2025-01-10 12:56:17 -08:00
parent 8b8c7ecf1d
commit 2fb0d99f00
2 changed files with 32 additions and 0 deletions

View File

@@ -1,6 +1,15 @@
on: [push, pull_request]
name: Nix
jobs:
required:
name: Required Checks
runs-on: namespace-profile-ghostty-sm
needs:
- check-zig-cache-hash
steps:
- name: Noop
run: echo "Required Checks Met"
check-zig-cache-hash:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-sm