mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
scripts/ci-clear-rolling-cache.py: - The 160-minute wait is timed from the cache warm leg's start, not from the script's start. The clear job starts with the run, and the leg starts after gate / select legs and a free runner. The job's timeout goes from 170 to 200 minutes to leave room for that delay. - The leg counts as saving when its Post Setup step (the gate-setup action's cache save) starts, not when any Post step starts. A leg that ends canceled or failed before that step succeeds deletes nothing and exits 1, as a leg that failed before its save already did. - actions/caches is read one page at a time, sorted by creation, until a page holds fewer than 100 entries. scripts/ci-clear-rolling-cache-tests.py checks the script with recorded API answers, and Nightly check runs it when either file changes.
76 lines
3.1 KiB
YAML
76 lines
3.1 KiB
YAML
name: Nightly check
|
|
|
|
# The app-side Nightly pieces, checked without a feed run: the Python suites that read the archive,
|
|
# plist and signing scripts, the workflow contracts, and (on Windows) the packaging and signing
|
|
# PowerShell suites. The producer itself is .github/workflows/nightly.yml; the Apple-silicon bundle
|
|
# is built and verified by nightly-macos.yml behind the `full-ci` label. The same job also runs the
|
|
# suite for scripts/ci-clear-rolling-cache.py, which ci.yml's nightly cold run calls.
|
|
on:
|
|
push:
|
|
branches: [main, release]
|
|
paths: [".github/workflows/nightly*.yml", "packaging/**", "apps/vectorcraft/**", "crates/ui-egui/src/os_window.rs", "scripts/ci-clear-rolling-cache*.py"]
|
|
pull_request:
|
|
paths: [".github/workflows/nightly*.yml", "packaging/**", "apps/vectorcraft/**", "crates/ui-egui/src/os_window.rs", "scripts/ci-clear-rolling-cache*.py"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: nightly-check-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
synthetic:
|
|
name: Packaging suites and script syntax
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run the synthetic suites
|
|
run: python3 packaging/nightly-tests.py
|
|
- name: Run the cold cache clear suite
|
|
run: python3 scripts/ci-clear-rolling-cache-tests.py
|
|
- name: Parse every nightly shell script
|
|
run: |
|
|
set -euo pipefail
|
|
for script in packaging/nightly-common.sh packaging/linux/nightly.sh packaging/linux/nightly-launch.sh \
|
|
packaging/linux/nightly-arch-tar.sh packaging/macos/nightly.sh \
|
|
packaging/macos/nightly-lib.sh packaging/macos/nightly-sign.sh packaging/macos/nightly-verify.sh; do
|
|
bash -n "$script"
|
|
done
|
|
- name: Shellcheck
|
|
run: |
|
|
set -euo pipefail
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y -qq shellcheck
|
|
shellcheck -x -P packaging packaging/nightly-common.sh packaging/linux/nightly.sh \
|
|
packaging/linux/nightly-launch.sh \
|
|
packaging/macos/nightly.sh packaging/macos/nightly-lib.sh packaging/macos/nightly-sign.sh \
|
|
packaging/macos/nightly-verify.sh
|
|
|
|
windows:
|
|
name: Windows packaging and signing suites
|
|
runs-on: windows-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Nightly packaging suite
|
|
shell: pwsh
|
|
run: ./packaging/windows/nightly-package-tests.ps1 -FixtureRoot $env:RUNNER_TEMP
|
|
- name: Nightly signing suite
|
|
shell: pwsh
|
|
run: ./packaging/windows/nightly-signing-tests.ps1 -FixtureRoot $env:RUNNER_TEMP
|