xserver/.github/workflows/ubuntu-apt-cache.yml
Enrico Weigelt, metux IT consult 2652994e8b ci: decouple apt cache — build jobs only pull, separate job pushes
- Build jobs (ubuntu-install-pkg): use actions/cache/restore@v5 with fail-on-cache-miss=false
  → optional warm cache, no failure on miss, no write-back (no locking conflicts)

- New action ubuntu-save-apt-cache: actions/cache/save@v5 with global key
  → only this action writes the cache

- New workflow ubuntu-apt-cache.yml: daily 02:00 UTC + master push
  → proactively populates global apt cache

- Removed ubuntu-fetch-pkg job and all needs: ubuntu-fetch-pkg dependencies
  → build jobs run independently, no chain delay causing cache TTL expiry

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-10-14 15:24:09 +02:00

21 lines
501 B
YAML

# SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright (C) 2026 Enrico Weigelt, metux IT consult <info@metux.net>
name: ubuntu apt cache population
on:
schedule:
- cron: '0 2 * * *' # daily at 02:00 UTC
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
populate-apt-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ubuntu-save-apt-cache