Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Desktop release: start the publish job alongside the build matrix (#8193)
Daniel Hanae59a9cf7585
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.ymlindex f29a736383a..4aaf3005b5e 100644--- a/.github/workflows/release-desktop.yml+++ b/.github/workflows/release-desktop.yml@@ -1458,12 +1458,18 @@ jobs:# Draft runs do not advance the public desktop-latest channel.publish-release:name: Publish desktop release- needs: [prepare-version, build]+ # Only prepare-version, so this starts alongside the build matrix and+ # queues for its runner during the build instead of after it. "Wait for the+ # build matrix" below restores the gate `needs: build` gave away. The cost+ # is one runner slot held for the length of the run.+ needs: [prepare-version]runs-on: ubuntu-latest- # Artifact download plus release upload; observed 17-40s.- timeout-minutes: 20+ # Waits out the build (legs cap at 60) then downloads and uploads; the+ # publish steps themselves are 17-40s.+ timeout-minutes: 90permissions:contents: write # create the versioned Release and replace updater-channel metadata+ actions: read # the waiter reads this run's job listenv:GH_REPO: ${{ github.repository }}APP_VERSION: ${{ needs.prepare-version.outputs.app_version }}@@ -1479,6 +1485,84 @@ jobs:with:egress-policy: audit+ # Replaces the `needs: build` gate dropped above, and must be at least as+ # strict: publishing a partial release is far worse than publishing late.+ - name: Wait for the build matrix+ env:+ GH_TOKEN: ${{ github.token }}+ run: |+ set -uo pipefail++ # The three matrix legs, by their `name:` (Build <matrix.label>).+ LEGS=('Build macOS (Apple Silicon)' 'Build Linux (x64)' 'Build Windows (x64)')+ POLL=30+ DEADLINE=$(( $(date +%s) + 75 * 60 ))+ # Matrix job records appear with the run, so a leg still missing well+ # after the start is a real problem, not a slow API.+ STARTUP_DEADLINE=$(( $(date +%s) + 15 * 60 ))+ API_FAILS=0++ while :; do+ if ! JOBS="$(gh api --paginate \+ "repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=100" \+ --jq '.jobs[] | [.name, .status, (.conclusion // "none")] | @tsv' 2>/dev/null)"; then+ # A blip in the jobs API must not throw away a finished build.+ API_FAILS=$(( API_FAILS + 1 ))+ if [ "$API_FAILS" -ge 10 ]; then+ echo "ERROR: jobs API failed 10 times running; cannot confirm the build matrix finished" >&2+ exit 1+ fi+ echo "jobs API call failed (${API_FAILS}/10); retrying in ${POLL}s"+ sleep "$POLL"+ continue+ fi+ API_FAILS=0++ MISSING=""+ PENDING=0+ BAD=""+ for leg in "${LEGS[@]}"; do+ ROW="$(printf '%s\n' "$JOBS" | awk -F'\t' -v n="$leg" '$1 == n {print; exit}')"+ if [ -z "$ROW" ]; then+ MISSING="${MISSING} '${leg}'"+ continue+ fi+ STATUS="$(printf '%s' "$ROW" | cut -f2)"+ CONCL="$(printf '%s' "$ROW" | cut -f3)"+ if [ "$STATUS" != "completed" ]; then+ PENDING=$(( PENDING + 1 ))+ elif [ "$CONCL" != "success" ]; then+ BAD="${BAD}${leg} (${CONCL}); "+ fi+ done++ # Fail on the first finished leg that did not succeed rather than+ # holding a runner to reach the same answer later.+ if [ -n "$BAD" ]; then+ echo "ERROR: refusing to publish, these build jobs did not succeed: ${BAD}" >&2+ exit 1+ fi+ if [ -n "$MISSING" ]; then+ if [ "$(date +%s)" -gt "$STARTUP_DEADLINE" ]; then+ echo "ERROR: no job record for:${MISSING}; refusing to publish without confirming they ran" >&2+ exit 1+ fi+ echo "waiting for job records to appear for:${MISSING}"+ sleep "$POLL"+ continue+ fi+ if [ "$PENDING" -eq 0 ]; then+ echo "all ${#LEGS[@]} build legs finished and succeeded"+ break+ fi+ if [ "$(date +%s)" -gt "$DEADLINE" ]; then+ echo "ERROR: timed out waiting for the build matrix; ${PENDING} leg(s) still running" >&2+ exit 1+ fi+ echo "${PENDING} of ${#LEGS[@]} build legs still running; polling again in ${POLL}s"+ sleep "$POLL"+ done+# This job publishes artifacts built elsewhere, so it historically needed no# source tree. The VirusTotal step runs a repo script, so it does now. Sparse:# a full checkout of this repo to fetch one file would be wasteful, and a