Skip to content

Support Ubuntu 26.04 and watch for new Ubuntu releases weekly - #9

Closed
d-date wants to merge 4 commits into
mainfrom
support-latest-ubuntu
Closed

d-date wants to merge 4 commits into
mainfrom
support-latest-ubuntu

Conversation

@d-date

@d-date d-date commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

  • plan-linux.sh derives swift.org platform names from any Ubuntu VERSION_ID (e.g. ubuntu2604 / ubuntu26.04) instead of a fixed list, so new Ubuntu releases work as soon as swift.org publishes them; releases without a build still fail at download with the URL tried. Non-Ubuntu distributions still fail with an explicit error.
  • install-linux.sh adds GCC 15 for 26.04 (matching swift-docker's 26.04 Dockerfile) and falls back to the distribution's default GCC for unknown releases.
  • CI adds ubuntu-26.04 and ubuntu-26.04-arm (6.4.1 only; 6.3.3 has no 26.04 build). .github/actionlint.yaml registers these labels, which the pinned actionlint 1.7.7 does not know yet.
  • New .github/workflows/watch-linux.yml (weekly + manual): reads the latest release from swift.org's releases.json, intersects its Ubuntu platforms with GitHub-hosted runner labels, installs and runs hello world on each, and opens or comments on a "Latest Linux check failing" issue when a scheduled run fails.

This branch is stacked on deterministic-install-dir (afd1d00, 28e70b5), which has no PR of its own, so those two commits are included here.

Test plan

  • shellcheck, actionlint (local)
  • Discovery script run locally: finds Swift 6.4.2 on ubuntu-22.04/24.04/26.04 (+arm)
  • Generated 6.4.1 URLs for 22.04 and 26.04 (aarch64) return HTTP 200; Debian fails with a clear error
  • CI on ubuntu-26.04 / ubuntu-26.04-arm: all 32 jobs green (run 42443056833)
  • watch-linux.yml can only be dispatched after it lands on main

🤖 Generated with Claude Code

d-date and others added 4 commits October 22, 2026 02:34
SwiftPM records the compiler's absolute path in build signatures, so a random
extraction directory invalidated restored .build caches on every run. The
toolchain now goes to $RUNNER_TOOL_CACHE/swift-verified/<version>/<arch>-<platform>,
which is removed entirely (after validating the path) and then filled only from
the archive verified in this run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XVjPg7eFxt1cU3r6wzjYTa
…ed paths

The toolchain moves to $RUNNER_TEMP/setup-swift/<version>/<arch>-<platform>
(stable across runs, private to one runner instance). The cached archive is
copied to a private snapshot that is both GPG-verified and extracted, and no
path component from RUNNER_TEMP down may be a symlink. CI covers symlinked
components and out-of-tree install directories.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XVjPg7eFxt1cU3r6wzjYTa
plan-linux.sh derives swift.org's platform names from VERSION_ID instead of
a fixed list, so new Ubuntu releases work once swift.org publishes them.
install-linux.sh adds GCC 15 for 26.04 and falls back to the distribution's
default GCC for unknown releases. CI covers ubuntu-26.04(-arm) with 6.4.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…u runners

Discovers the latest swift.org release and every Ubuntu version that both
swift.org and GitHub-hosted runners offer, installs and runs hello world on
each, and opens or updates a tracking issue when the scheduled run fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@d-date

d-date commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Superseded by #10 (Ubuntu 26.04 support had already landed in #8).

@d-date d-date closed this Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant