Files
craft-libs/.github/workflows/nightly.yml
T
aiongg 9054b83c27 CI: next keeps its own Linux workspace-crates cache entry; CRW samples are saved once
Pull requests into next restored main's workspace-crates entry, which is built from other code and
another lockfile, and rebuilt nearly the whole workspace from it (15.5 minutes on next today).
nightly.yml's daily manual run on next now builds from source and saves next's own entry, which
pull requests into next restore before main's; cache prune keeps only its newest one.

crw.yml saved the same 78 MB of sample files once per pull request (17 copies today); pull
requests now restore the branch entry and never save.
2026-11-24 19:34:38 +00:00

59 lines
2.2 KiB
YAML

name: Nightly full tests
# The tests the Workspace gate shortens, in full, once a day: every hostile-input hammer and sweep
# without CRAFT_HOSTILE_DIVISOR, and every proptest at its own case count (no PROPTEST_CASES). The
# rest of the workspace's tests run with them, on Linux, with the gate's setup.
on:
schedule:
- cron: "37 2 * * *"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: nightly-${{ github.ref }}
cancel-in-progress: false
jobs:
full:
name: Full tests
uses: storytold/craft-common-actions/.github/workflows/gate.yml@main
with:
os: '["ubuntu-latest"]'
timeout-minutes: 120
tools: cargo-nextest@0.9.150
packages: mesa-vulkan-drivers libvulkan1
craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
linux-env: WGPU_BACKEND=vulkan
env: CRAFT_PRINT_REQUIRE_QUEUE=0
setup-command: bash scripts/ci-test-inputs.sh
cache-paths: .test-inputs/photocraft/corpus
cache-key: photocraft-corpus
cache-key-files: scripts/ci-test-inputs.sh
command: cargo nextest run --workspace --all-features --locked --profile ci
# Pull requests run the Workspace gate's Linux legs only, and pushes to next cancel each other's
# runs, so this starts one Workspace run on next a day that nothing cancels: next's macOS and
# Windows legs then run in full at least once a day, and its Linux leg builds from source and
# saves next's own workspace-crates cache entry, which pull requests into next restore. Main gets
# the same from workspace.yml's own scheduled runs. The only job here with `actions: write`; it checks out and runs nothing from
# the repository.
workspace-next:
name: Workspace on next
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
actions: write
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- name: Start the Workspace workflow on next
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
run: gh workflow run workspace.yml --repo "$REPO" --ref next