Skip to content

Truly independent web browser

CI: Install sccache with system package managers

Timothy Flynn0f04845bed8a
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 30653ada2f6..1b3d16c1c5f 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -79,20 +79,6 @@ runs:
python3 "${GITHUB_WORKSPACE}/Meta/Linters/run.py"
fi
- - name: Ensure clang-cl is available
- if: ${{ inputs.os == 'Windows' && inputs.toolchain == 'ClangCL' }}
- shell: bash
- run: |
- if ! where clang-cl > /dev/null 2>&1 ; then
- # Keep the LLVM version in sync with GitHub's Windows runner image:
- # https://github.com/actions/runner-images/blob/main/images/windows/Windows2025-Readme.md
- choco install -y llvm --no-progress --version=20.1.8
-
- echo "C:/Program Files/LLVM/bin" >> "${GITHUB_PATH}"
- export PATH="/c/Program Files/LLVM/bin:${PATH}"
- fi
- clang-cl --version
-
- name: 'Select latest Xcode'
if: ${{ inputs.os == 'macOS' || inputs.os == 'Android' }}
uses: maxim-lobanov/setup-xcode@v1
@@ -119,8 +105,25 @@ runs:
nasm \
ninja \
pkg-config \
+ sccache \
unzip
+ - name: 'Install Dependencies'
+ if: ${{ inputs.os == 'Windows' }}
+ shell: bash
+ run: |
+ choco install -y sccache --no-progress
+
+ if ! where clang-cl > /dev/null 2>&1 ; then
+ # Keep the LLVM version in sync with GitHub's Windows runner image:
+ # https://github.com/actions/runner-images/blob/main/images/windows/Windows2025-Readme.md
+ choco install -y llvm --no-progress --version=20.1.8
+
+ echo "C:/Program Files/LLVM/bin" >> "${GITHUB_PATH}"
+ export PATH="/c/Program Files/LLVM/bin:${PATH}"
+ fi
+ clang-cl --version
+
- name: 'Install Rust toolchain'
if: ${{ inputs.os == 'macOS' || inputs.os == 'Android' }}
uses: dtolnay/rust-toolchain@stable
@@ -219,73 +222,6 @@ runs:
shell: bash
run: echo "${GITHUB_WORKSPACE}/wasm-tools" >> "$GITHUB_PATH"
- # The build uses sccache as the rustc wrapper whenever it finds sccache on the PATH, so that our Rust code gets the
- # same compile caching as ccache gives our C++ code.
- - name: 'Resolve sccache release'
- id: 'sccache'
- if: ${{ inputs.type == 'build' }}
- shell: bash
- run: |
- VERSION=0.18.0
- if ${{ runner.arch == 'ARM64' }} ; then
- ARCH=aarch64
- else
- ARCH=x86_64
- fi
- case "${{ runner.os }}" in
- Linux) TRIPLE="${ARCH}-unknown-linux-musl" ;;
- macOS) TRIPLE="${ARCH}-apple-darwin" ;;
- Windows) TRIPLE="${ARCH}-pc-windows-msvc" ;;
- esac
- NAME="sccache-v${VERSION}-${TRIPLE}"
- echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
- echo "name=${NAME}" >> "$GITHUB_OUTPUT"
-
- - name: 'Restore sccache'
- id: 'sccache-cache'
- if: ${{ inputs.type == 'build' }}
- uses: actions/cache/restore@v6
- with:
- path: ${{ github.workspace }}/sccache
- key: ${{ steps.sccache.outputs.name }}
-
- - name: 'Install sccache'
- if: ${{ inputs.type == 'build' && steps.sccache-cache.outputs.cache-hit != 'true' }}
- shell: bash
- run: |
- FILENAME="${{ steps.sccache.outputs.name }}.tar.gz"
- URL="https://github.com/mozilla/sccache/releases/download/v${{ steps.sccache.outputs.version }}/${FILENAME}"
-
- delays=(5 15 45)
- attempt=1
- until curl --fail --location --output "${FILENAME}" "${URL}"; do
- if (( attempt > ${#delays[@]} )); then
- echo "sccache download failed after $(( ${#delays[@]} + 1 )) attempts" >&2
- exit 1
- fi
- echo "sccache download failed; retrying in ${delays[attempt-1]}s" >&2
- sleep "${delays[attempt-1]}"
- attempt=$(( attempt + 1 ))
- done
-
- tar -xzf "${FILENAME}"
- rm "${FILENAME}"
- mv "${{ steps.sccache.outputs.name }}" sccache
-
- # Saved right after the install rather than by actions/cache's post-job step, which runs only if the whole job
- # succeeds — so a flaky test would keep the cache from ever being saved.
- - name: 'Save sccache'
- if: ${{ github.ref == 'refs/heads/master' && inputs.type == 'build' && steps.sccache-cache.outputs.cache-hit != 'true' }}
- uses: actions/cache/save@v6
- with:
- path: ${{ github.workspace }}/sccache
- key: ${{ steps.sccache-cache.outputs.cache-primary-key }}
-
- - name: 'Add sccache to PATH'
- if: ${{ inputs.type == 'build' }}
- shell: bash
- run: echo "${GITHUB_WORKSPACE}/sccache" >> "$GITHUB_PATH"
-
- name: 'Restore cargo registry'
id: 'cargo-registry'
uses: actions/cache/restore@v6
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
index 9932191eadf..b361c5c9c5d 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-release.yml
@@ -71,7 +71,7 @@ jobs:
- os_name: 'Linux'
arch: 'x86_64'
runner_labels: '["blacksmith-16vcpu-ubuntu-2404"]'
- container: &ci_container '{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16"}'
+ container: &ci_container '{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29"}'
- os_name: 'Linux'
arch: 'arm64'
runner_labels: '["blacksmith-16vcpu-ubuntu-2404-arm"]'
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f68776f73f4..ae46d51ee51 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,7 +24,7 @@ jobs:
toolchain: ['GNU']
clang_plugins: [false]
runner_labels: ['["blacksmith-16vcpu-ubuntu-2404"]']
- container: [&ci_container '{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16"}']
+ container: [&ci_container '{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29"}']
include:
- os_name: 'Linux'
diff --git a/.github/workflows/js-and-wasm-artifacts.yml b/.github/workflows/js-and-wasm-artifacts.yml
index 43bfa07c6d8..fff64962bd2 100644
--- a/.github/workflows/js-and-wasm-artifacts.yml
+++ b/.github/workflows/js-and-wasm-artifacts.yml
@@ -29,7 +29,7 @@ jobs:
toolchain: ['Clang']
package_type: ['Linux-x86_64']
runner_labels: ['["blacksmith-8vcpu-ubuntu-2404"]']
- container: [&ci_container '{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16"}']
+ container: [&ci_container '{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29"}']
include:
- os_name: 'macOS'
diff --git a/.github/workflows/js-and-wasm-benchmarks.yml b/.github/workflows/js-and-wasm-benchmarks.yml
index f9cb338932a..23a8393f163 100644
--- a/.github/workflows/js-and-wasm-benchmarks.yml
+++ b/.github/workflows/js-and-wasm-benchmarks.yml
@@ -20,7 +20,7 @@ jobs:
arch: ['x86_64']
package_type: ['Linux-x86_64']
runner_labels: ['["ubuntu-24.04-internal", "js-benchmarks", "self-hosted"]']
- container: ['{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16"}']
+ container: ['{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29"}']
include:
- os_name: 'macOS'
diff --git a/.github/workflows/libjs-test262.yml b/.github/workflows/libjs-test262.yml
index 65e8b3ef3db..f2e70400803 100644
--- a/.github/workflows/libjs-test262.yml
+++ b/.github/workflows/libjs-test262.yml
@@ -18,7 +18,7 @@ jobs:
runs-on: 'blacksmith-16vcpu-ubuntu-2404'
if: github.repository == 'LadybirdBrowser/ladybird'
container:
- image: ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16
+ image: ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29
steps:
- name: Checkout LadybirdBrowser/ladybird
diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml
index 2826aa3e340..f8d8cf63aec 100644
--- a/.github/workflows/lint-code.yml
+++ b/.github/workflows/lint-code.yml
@@ -10,7 +10,7 @@ jobs:
runs-on: blacksmith-2vcpu-ubuntu-2404
if: github.repository == 'LadybirdBrowser/ladybird'
container:
- image: ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16
+ image: ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29
steps:
- uses: actions/[email protected]
@@ -35,7 +35,7 @@ jobs:
runs-on: blacksmith-2vcpu-ubuntu-2404
if: github.repository == 'LadybirdBrowser/ladybird'
container:
- image: ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16
+ image: ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29
steps:
- uses: actions/[email protected]
diff --git a/.github/workflows/nightly-lagom.yml b/.github/workflows/nightly-lagom.yml
index 5acad1f14f9..e1d107e1915 100644
--- a/.github/workflows/nightly-lagom.yml
+++ b/.github/workflows/nightly-lagom.yml
@@ -24,7 +24,7 @@ jobs:
toolchain: ['Clang']
clang_plugins: [false]
runner_labels: ['["blacksmith-8vcpu-ubuntu-2404-arm"]']
- container: ['{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16"}']
+ container: ['{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29"}']
include:
- os_name: 'Windows'
diff --git a/.github/workflows/web-benchmarks.yml b/.github/workflows/web-benchmarks.yml
index eaa218f9ec1..e0117d4ac31 100644
--- a/.github/workflows/web-benchmarks.yml
+++ b/.github/workflows/web-benchmarks.yml
@@ -21,7 +21,7 @@ jobs:
os_name: ['Linux']
arch: ['x86_64']
runner_labels: ['["ubuntu-24.04-internal", "web-benchmarks", "self-hosted"]']
- container: ['{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.16"}']
+ container: ['{"image":"ghcr.io/ladybirdbrowser/ladybird-ci:2026.10.29"}']
include:
- os_name: 'macOS'