mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-19 17:12:19 +01:00
symphonia (MPL-2.0, via craft-audio) and jpeg-encoder (IJG, via craft-image-codecs) are crate-scoped exceptions in deny.toml, approved by the project lead; NOTICE, ATTRIBUTION.md and compliance.md name them. The shared gate doesn't run cargo-deny, so ci.yml has its own job. Raised with the shared libraries team: storytold/craft-libs#2100.
51 lines
2.0 KiB
YAML
51 lines
2.0 KiB
YAML
name: CI
|
|
|
|
# Quality gates for every push to main and every pull request, through the
|
|
# suite's shared gate workflow in craft-common-actions.
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
# A newer push to a PR branch cancels its older run; every push to main runs to the end.
|
|
concurrency:
|
|
group: ci-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
gate:
|
|
# Tracks @main so suite-wide CI fixes reach every app without a PR in each repository.
|
|
uses: storytold/craft-common-actions/.github/workflows/gate.yml@main
|
|
with:
|
|
# Same craft-fonts commit as release.yml.
|
|
craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
|
|
# mesa-vulkan-drivers: lavapipe, a software Vulkan adapter, so the GPU stage's parity
|
|
# tests run against the CPU oracle on runners without a graphics card (ADR 0031).
|
|
packages: >-
|
|
libxkbcommon-dev libwayland-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev
|
|
libgtk-3-dev libasound2-dev mesa-vulkan-drivers
|
|
command: cargo test --workspace && cargo clippy --workspace --all-targets -- -D warnings
|
|
|
|
# The licence policy (deny.toml, docs/legal/compliance.md): the shared gate doesn't run
|
|
# cargo-deny, so AniCraft checks its own dependency licences, bans and sources here.
|
|
licenses:
|
|
timeout-minutes: 20
|
|
name: Licences, bans and sources (cargo deny)
|
|
runs-on: ubuntu-24.04
|
|
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: Install cargo-deny
|
|
run: cargo install cargo-deny --locked --version 0.20.2
|
|
- name: Check licences, bans and sources
|
|
run: cargo deny --locked check licenses bans sources
|