Skip to content

Vendor APT package caching for Linux CI#8513

Open
cknitt wants to merge 1 commit into
masterfrom
apt-cache-vendor
Open

Vendor APT package caching for Linux CI#8513
cknitt wants to merge 1 commit into
masterfrom
apt-cache-vendor

Conversation

@cknitt

@cknitt cknitt commented Jul 13, 2026

Copy link
Copy Markdown
Member

Summary

  • vendor the relevant behavior of awalsh128/cache-apt-pkgs-action
  • restore installed package files directly on cache hits
  • use actions/cache@v6
  • include Ubuntu version, architecture, and package versions in cache keys
  • install multilib dependencies only on x64 runners
  • remove obsolete darcs and mercurial dependencies
  • remove the obsolete Dependabot exclusion

Why

The currently pinned awalsh128/cache-apt-pkgs-action@v1.4.3 uses GitHub Actions dependencies that run on the deprecated Node.js 20 runtime, causing deprecation warnings in CI. Newer versions avoid those warnings but break the Dune setup.

Replacing it with gerlero/apt-install removes the warning and build failure, but cache hits still take over 20 seconds—roughly as long as an uncached installation.

The old action’s filesystem-based cache restores the required files in only a few seconds. This vendors a small, repository-specific implementation of that approach while using actions/cache@v6 and avoiding the problematic upstream changes.

On cache hits, CI only resolves the cache key, restores the cache, and extracts one tar archive. apt-get update and package installation run only on cache misses.

@pkg-pr-new

pkg-pr-new Bot commented Jul 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@8513

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@8513

@rescript/darwin-x64

npm i https://pkg.pr.new/@rescript/darwin-x64@8513

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@8513

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@8513

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@8513

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@8513

commit: 11632fa

@github-actions

Copy link
Copy Markdown

@cknitt

cknitt commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

Supersedes #8507

@cknitt cknitt marked this pull request as ready for review July 14, 2026 06:04
@cknitt

cknitt commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 11632faa3c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cknitt cknitt requested a review from fhammerschmidt July 14, 2026 09:14
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