Files
arena-tracker/.gitea/workflows/ci.yml
T
nessarandClaude Opus 5.5 5f4332a79f
CI / core (pull_request) Successful in 1m18s
Publish a stable of main from the build PC (#61)
scripts/publish-beta becomes scripts/publish with a channel argument.
`scripts/publish stable [commit]` publishes the Cargo.toml version of a
commit on main whose CI checks passed: it builds with scripts/package,
checks the signed files against the tag and commit before creating
anything, tags vX.Y.Z on that commit, then publishes a complete draft as
a normal Release. A stable tag never moves; reruns reuse, complete or
refuse as for betas. Releases now name their target commit, so a tag
that only exists locally is never created on the default branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:27:53 +01:00

38 lines
1.0 KiB
YAML

# Only the core crate is checked: the app crate (GPUI) only builds on Windows (ADR-0003).
# Betas of develop and stables of main are published from the build PC once these checks pass (docs/publication.md).
name: CI
on:
pull_request:
push:
branches:
- main
- develop
# CI never publishes: a read-only job token is enough.
permissions:
contents: read
jobs:
core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable (rustfmt, clippy)
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --component rustfmt,clippy
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Format
run: cargo fmt -p arena-tracker-core --check
- name: Clippy
run: cargo clippy -p arena-tracker-core --all-targets --locked -- -D warnings
- name: Tests
run: cargo test -p arena-tracker-core --locked
- name: Publication tests
run: python3 scripts/test_publish.py