Skip to content

Website and release pipeline for v0.1.0 - #2

Merged
AdminGodZ merged 2 commits into
mainfrom
release-site
Nov 20, 2026
Merged

AdminGodZ merged 2 commits into
mainfrom
release-site

Conversation

@AdminGodZ

Copy link
Copy Markdown
Owner

Adds the website for broadside.admingod.ch and a tag-triggered release pipeline.

Website (site/, deployed by Vercel from main)

  • Landing page in the game's style: play, downloads (the card for the visitor's OS comes first), how it works, strength table and duel chart.
  • The browser game is served at /play.
  • vercel.json runs site/vercel-build.sh, which installs Rust (toolchain and wasm target from rust-toolchain.toml) and runs site/build.sh. Tested in a clean amazonlinux:2023 container (the base of Vercel's build image).

Releases (.github/workflows/release.yml, on tag vX.Y.Z)

  • Fails if the tag doesn't match the workspace version, then runs clippy and tests.
  • Builds the CLI for aarch64/x86_64 macOS, x86_64/aarch64 Linux (glibc 2.35+) and x86_64 Windows. RUSTFLAGS overrides target-cpu=native from .cargo/config.toml with portable baselines (x86-64-v2, apple-m1, generic), so downloads don't crash on other CPUs.
  • Publishes a GitHub release with the archives, broadside.html and SHA256SUMS.txt. File names carry no version, so the site's releases/latest/download/... links stay valid.

CI (.github/workflows/ci.yml): fmt, clippy -D warnings, cargo test --release and the site build.

Checked locally: fmt, clippy, tests (58 + 2 passed), site build, actionlint, portable builds for both macOS targets (bench: empty board in 47 ms on the apple-m1 baseline).

- site/: landing page (play, downloads, how it works, strength) and build.sh,
  which also puts the browser game at /play
- vercel.json + site/vercel-build.sh: Vercel installs Rust and builds the site
- release.yml: on a vX.Y.Z tag, test, build the CLI for macOS (arm64, x86-64),
  Linux (x86-64, arm64) and Windows with portable CPU baselines, build the
  browser game, publish a GitHub release with checksums
- ci.yml: fmt, clippy, tests and the site build on pushes and PRs
- rust-toolchain.toml installs the wasm target; README: site, downloads, releasing
CI installs the toolchain from rust-toolchain.toml. With channel = stable it
picked up 1.100, whose new lint failed clippy -D warnings. Pinning keeps CI,
Vercel, release builds and local builds on the same compiler.
@AdminGodZ
AdminGodZ merged commit d6cb1ee into main Nov 20, 2026
2 checks passed
@AdminGodZ
AdminGodZ deleted the release-site branch November 20, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant