mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-20 17:41:41 +01:00
The Linux leg restores the newest rolling cache entry of the workspace crates (cache-workspace-crates), so a pull request rebuilds only the crates its change reaches. Each main run saves an entry of its own and cache-prune deletes the older ones; the midnight scheduled run builds from source and starts the entry afresh. gate.yml's cache-workspace-crates covers a whole call, so the macOS and Windows legs move to a call of their own with dependency-only entries. A select platforms job decides whether that call runs, since an empty leg list would fail it. To fit the 10 GB cache budget, the lint legs and the sonarcloud instrumented build keep no cache.
31 lines
1.5 KiB
YAML
31 lines
1.5 KiB
YAML
name: SonarCloud
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: sonarcloud-${{ github.ref }}
|
|
# A push to main is the run that publishes coverage; superseded runs there would never finish.
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
jobs:
|
|
sonarcloud:
|
|
# Track shared CI improvements on main.
|
|
uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
|
|
with:
|
|
pdf-test-fonts: true
|
|
# The instrumented build runs without a dependency cache: its 1.2 GB entry does not fit the
|
|
# repository's 10 GB cache budget beside the Workspace gate's. It runs on main only.
|
|
build-cache: false
|
|
# The codec and format code behind features that are off by default. Without these the
|
|
# coverage build never compiles it, and new code there reads as untested.
|
|
cargo-features: >-
|
|
craft-image-codecs/avif,craft-image-codecs/avif-decode,craft-video/dnx,craft-video/vp8,craft-video/prores,craft-video/h264,craft-video/hevc,craft-video/vp9,craft-video/av1,craft-video/threads,craft-audio/decode,craft-audio/encode,craft-audio/peaks,craft-audio/rayon,craft-audio/serde,craft-media/matroska,craft-media/ogg,craft-media/bitstream,craft-media/serde,craft-mesh/stl,craft-mesh/obj,craft-mesh/ply,craft-mesh/gltf,craft-metafile/write,craft-image-codecs/sgi,craft-image-codecs/sunraster,craft-jsonrpc/async-lines
|
|
secrets: inherit
|