Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix(ci): re-assert every dependency the arm64 excuse silently dropped

Minh141120068e313ce8f8
diff --git a/.github/workflows/jan-tauri-build-agent-nightly.yaml b/.github/workflows/jan-tauri-build-agent-nightly.yaml
index 8520f840a..4c4ebe7e3 100644
--- a/.github/workflows/jan-tauri-build-agent-nightly.yaml
+++ b/.github/workflows/jan-tauri-build-agent-nightly.yaml
@@ -83,10 +83,13 @@ jobs:
]
runs-on: ubuntu-22.04
# build-windows-arm64 is here for its outputs, not as a gate -- see the
- # ARM_SHA branch below. The four legs the published CLI updates from stay
- # required.
+ # ARM_SHA branch below. Every other dependency is re-asserted by hand: a
+ # status function anywhere in `if` drops the implicit success() gate for the
+ # whole `needs` set, so without get-update-version a failed version job
+ # would publish a manifest with an empty version and empty urls.
if: >-
!cancelled()
+ && needs.get-update-version.result == 'success'
&& needs.build-linux-x64.result == 'success'
&& needs.build-macos.result == 'success'
&& needs.build-windows-x64.result == 'success'
diff --git a/.github/workflows/jan-tauri-build-nightly.yaml b/.github/workflows/jan-tauri-build-nightly.yaml
index b6b5c8807..ae724b212 100644
--- a/.github/workflows/jan-tauri-build-nightly.yaml
+++ b/.github/workflows/jan-tauri-build-nightly.yaml
@@ -140,10 +140,17 @@ jobs:
runs-on: ubuntu-22.04
# build-windows-arm64 is in `needs` for its outputs, not as a gate: while
# ARM64 is being stabilised a failed leg must not withhold the manifest
- # from x64, linux and macOS users. The three legs people actually update
- # from are still required, so a broken one still stops publication.
+ # from x64, linux and macOS users.
+ #
+ # Every other dependency is then re-asserted by hand, because a status
+ # function anywhere in `if` drops the implicit success() gate for the whole
+ # `needs` set, not just for the job being excused. Without the first two a
+ # failed get-update-version would publish latest.json with an empty version
+ # and empty urls -- which every platform's updater then fails to parse.
if: >-
!cancelled()
+ && needs.get-update-version.result == 'success'
+ && needs.set-public-provider.result == 'success'
&& needs.build-windows-x64.result == 'success'
&& needs.build-linux-x64.result == 'success'
&& needs.build-macos.result == 'success'