Repository navigation
CI and Releases
Three GitHub Actions workflows live in .github/workflows/.
flowchart LR
PR[Pull request / feature branch] --> CI[CI: fmt, clippy, tests Win/Linux/macOS, rustdoc]
M[Push to master] --> REL[Release workflow]
M --> DOCS[Docs and wiki workflow]
REL --> P[prepare: version + notes]
P --> B[build + test: windows x64/arm64, linux-x64, macos-universal]
B --> G{{"approval: environment 'release'"}}
G --> PUB[publish GitHub release]
PUB --> W[update wiki Releases page]
DOCS --> RD[rustdoc → GitHub Pages]
DOCS --> WS[wiki/ → GitHub wiki]
Runs on pull requests and pushes to branches other than master:
| Job | Command |
|---|---|
| rustfmt |
cargo fmt --all -- --check (must pass) |
| clippy |
cargo clippy --workspace --all-targets -- -D warnings (must pass) |
| test |
cargo test --workspace and cargo build --release on Windows x64, Windows ARM64, Linux and macOS |
| rustdoc |
cargo doc --workspace --no-deps --document-private-items with warnings as errors |
Runs on every push to master that changes code or build files (pushes that only touch
wiki/, Markdown, screenshots or the other workflows are skipped), and on demand from the
Actions tab.
-
Version and notes. The tag is
v<workspace version>.<run number>, for examplev0.1.0.12. Release notes list the commits since the previousv*tag. -
Build. Native runners for Windows x64, Windows ARM64, Linux x64 and macOS run the unit
tests, build in release mode and package
openblood-<tag>-windows-x64.zip,-windows-arm64.zip,-linux-x64.tar.gz(stripped) and-macos-universal.tar.gz(one binary for arm64 and x86_64, merged withlipo), each with README and license. -
Approval. The publish job uses the
releaseenvironment, which has required reviewers. The run pauses with Waiting for review; a reviewer opens the run, clicks Review deployments, ticksreleaseand approves (or rejects). Nothing is published until then. -
Publish. Creates the GitHub release and tag on the built commit, uploads both packages
and
SHA256SUMS.txt. - Wiki. Regenerates the Releases page from the GitHub releases API and pushes it to the wiki.
To start a new version series, bump version in [workspace.package] of Cargo.toml.
Rejecting or ignoring an approval leaves no tag or release behind; build artifacts expire with the run.
Runs on pushes to master that touch crates/, wiki/, Cargo files or the workflow scripts:
- builds rustdoc for the whole workspace (private items included) and deploys it to GitHub Pages: https://dagrigorev.github.io/OpenBlood/;
- mirrors the
wiki/folder into the GitHub wiki and regenerates the Releases page.
The wiki/ folder in the repository is the source of truth. Edit pages there, in a pull
request like code; after merge, the workflow publishes them. Pages edited directly on GitHub
are overwritten by the next sync. Releases.md is generated and must not be added to
wiki/.
Link pages by their file name without .md, e.g. [Renderer](Renderer). Images are served
from the repository's screenshots/ folder via raw.githubusercontent.com.
Done once by a maintainer (already configured for this repository):
| Setting | Where |
|---|---|
release environment with required reviewers, deployments limited to master
|
Settings → Environments |
| GitHub Pages source: GitHub Actions | Settings → Pages |
| Wiki enabled and initialised (the wiki git repository only exists after the first page is saved in the web UI) | Settings → General → Features, then the Wiki tab |
| Script | Purpose |
|---|---|
.github/scripts/sync-wiki.sh |
clones the wiki, replaces its pages with wiki/, writes the generated Releases page, commits and pushes when something changed |
.github/scripts/wiki-releases.sh |
prints the Releases page Markdown from the releases API (gh + jq) |
Both need GITHUB_REPOSITORY and a token with contents: write (GITHUB_TOKEN in the
workflows).
OpenBlood is MIT licensed and contains no Blood game content. Blood is © 1997 Monolith Productions. This wiki is generated from the wiki/ folder; edit it there.