cargo release <level> bumps, tags v<semver>, and pushes; publish.yml reacts to the tag and attaches the artifact to that release. Plain main pushes now run tests (test.yml) instead of publishing build-<sha> artifacts on every push. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
27 lines
650 B
YAML
27 lines
650 B
YAML
name: Test
|
|
|
|
# Publishing only happens on v* tags (publish.yml), so this is what
|
|
# keeps plain main pushes honest between releases.
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: bare
|
|
env:
|
|
# Same shared-toolchain/cache story as publish.yml.
|
|
CARGO_HOME: /var/local/cargo
|
|
RUSTUP_HOME: /var/local/rustup
|
|
PATH: /var/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin
|
|
SCCACHE_DIR: /var/local/sccache
|
|
SCCACHE_SERVER_PORT: "4228"
|
|
CARGO_TARGET_DIR: /var/local/cargo-target
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Test
|
|
run: cargo test --features ssr
|