mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-04 14:06:32 +01:00
fix(ci): run the macOS job on macos-latest right after lint, on every change to its paths, and drop the self-hosted one
macos-14 was retired on 2 November 2026 and the runner label was no longer supported, so macos-hosted was cancelled and failed required. Only Apple silicon and the latest macOS are supported, and a standard hosted runner is free on a public repository, so: - macos-hosted runs on macos-latest - it runs on a pull request that touches the macOS paths, without the label ci:macos - it needs only changes and lint, like windows-native-test, and no longer waits for the KDE VM suites - macos-selfhosted.yaml, its install-nix input, its path filter, the label ci:macos-self and the variable MACOS_SELF_HOSTED are removed
This commit is contained in:
1 parent
9c5f0c459f
commit
df2f3ae0ad
5 files changed
+21
-70
No files matched your search
+10
-14
@@ -11,7 +11,7 @@ name: ci
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
# `labeled` so that adding ci:vm, ci:macos or ci:win-arm starts the stage the label asks for
|
||||
# `labeled` so that adding ci:vm or ci:win-arm starts the stage the label asks for
|
||||
types: [opened, synchronize, reopened, labeled]
|
||||
merge_group:
|
||||
push:
|
||||
@@ -306,6 +306,15 @@ jobs:
|
||||
# shellcheck disable=SC2046
|
||||
cargo nextest run --locked $(tools/test-partition packages windows) $(tools/test-partition packages os_sensitive)
|
||||
|
||||
# A hosted runner of Apple silicon with the latest macOS, the only one that is supported; free on a public repository.
|
||||
macos-hosted:
|
||||
needs: [changes, lint]
|
||||
if: ${{ !cancelled() && !failure() && needs.changes.outputs.macos == 'true' }}
|
||||
uses: ./.github/workflows/_macos.yaml
|
||||
with:
|
||||
runs-on: '"macos-latest"'
|
||||
secrets: inherit
|
||||
|
||||
# ---- stage 4: the KDE guests ----
|
||||
|
||||
# The suites are found in the flake, so that a new directory under nix/linux/tests/vm/suites is run
|
||||
@@ -345,19 +354,6 @@ jobs:
|
||||
suites: ${{ needs.discover.outputs.fast }}
|
||||
secrets: inherit
|
||||
|
||||
# ---- stage 5: macOS ----
|
||||
|
||||
macos-hosted:
|
||||
needs: [changes, vm-fast, mac-typecheck]
|
||||
if: >-
|
||||
${{ !cancelled() && !failure() && (
|
||||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:macos')) ||
|
||||
(github.event_name != 'pull_request' && needs.changes.outputs.macos == 'true')) }}
|
||||
uses: ./.github/workflows/_macos.yaml
|
||||
with:
|
||||
runs-on: '"macos-14"'
|
||||
secrets: inherit
|
||||
|
||||
# the only check that a ruleset requires: every job above passed or was skipped
|
||||
required:
|
||||
if: always()
|
||||
|
||||
Reference in new issue
Block a user