Skip to content

Add host-side games module and CLI commands; add release-binaries CI workflow#4

Merged
Tesla1983 merged 1 commit into
masterfrom
codex/identify-cpp-games-for-minios
May 17, 2026
Merged

Add host-side games module and CLI commands; add release-binaries CI workflow#4
Tesla1983 merged 1 commit into
masterfrom
codex/identify-cpp-games-for-minios

Conversation

@Tesla1983
Copy link
Copy Markdown
Owner

Motivation

  • Provide host-side, text-based previews of MiniOS games (ball, pingpong, d20, coin) so the Rust host CLI can simulate interactive firmware features without TFT hardware.
  • Expose game commands from the REPL and validate arguments for a better developer experience.
  • Add an automated workflow to build, package, and upload prebuilt Rust CLI binaries for common targets on tagged releases.

Description

  • Added rust/src/games.rs implementing ball_game, pingpong_game, d20_game, and coin_game along with unit tests and a simple LCG RNG helper.
  • Integrated the games into the shell by exporting pub mod games; in lib.rs and wiring commands in rust/src/shell.rs including ball, pong/pingpong, d20/dice, and coin/flip, plus a print_game_lines helper and thorough argument validation for ball.
  • Added tests exercising the new game functions and CLI plumbing, and updated shell help text to list the new game commands.
  • Added .github/workflows/release-binaries.yml which builds the minios binary for Linux, macOS, and Windows, packages per-OS archives, uploads artifacts, and attaches them to GitHub releases via gh on tag pushes.

Testing

  • Ran cargo test for the Rust crate and the new unit tests which verify game outputs and shell command behavior, and all tests passed.
  • Verified the ball command argument validation via unit tests that assert proper error messages and counts.

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d0ce3b2278

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/release-binaries.yml
@Tesla1983 Tesla1983 merged commit 5b4fa8c into master May 17, 2026
1 check passed
@Tesla1983 Tesla1983 deleted the codex/identify-cpp-games-for-minios branch May 17, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant