CI: align Dioxus CLI version with Dioxus crate version #4

Closed
opened 2026-06-23 16:46:21 +00:00 by mik-tf · 1 comment
Owner

Context

GitHub Pages and local Playwright runs currently build successfully, but dx serve logs a version mismatch:

dx and dioxus versions are incompatible

dx version: 0.7.3
dioxus versions: [0.7.9]

This is not user-facing today, but the showcase and release flow should not rely on a mismatched Dioxus CLI.

Desired behavior

Pin or install a dioxus-cli version compatible with the crate's dioxus dependency, and use the same approach where the showcase is built in CI.

Acceptance criteria

  • GitHub Pages workflow builds the showcase without the CLI/framework mismatch warning.
  • Playwright web server setup uses the same compatible dx version.
  • Release workflow behavior remains unchanged.
  • Showcase build and e2e tests still pass.

Signed-by: mik-tf mik-tf@noreply.invalid

## Context GitHub Pages and local Playwright runs currently build successfully, but `dx serve` logs a version mismatch: ```text dx and dioxus versions are incompatible dx version: 0.7.3 dioxus versions: [0.7.9] ``` This is not user-facing today, but the showcase and release flow should not rely on a mismatched Dioxus CLI. ## Desired behavior Pin or install a `dioxus-cli` version compatible with the crate's `dioxus` dependency, and use the same approach where the showcase is built in CI. ## Acceptance criteria - GitHub Pages workflow builds the showcase without the CLI/framework mismatch warning. - Playwright web server setup uses the same compatible `dx` version. - Release workflow behavior remains unchanged. - Showcase build and e2e tests still pass. Signed-by: mik-tf <mik-tf@noreply.invalid>
Author
Owner

Implemented in 5f7647d and 3e70893.

Changes:

  • Added tools/install-dioxus-cli.sh to install the dioxus-cli version matching the resolved dioxus package from Cargo metadata.
  • Updated GitHub Pages and E2E workflows to use the shared installer.
  • Updated Playwright web server startup to verify the compatible CLI before dx serve.
  • Updated the affected GitHub cache keys so the corrected CLI cache can refresh.
  • Documented the helper in tools/README.md.

Validation:

  • Local installer resolves dioxus-cli 0.7.9 and skips when already installed.
  • No-lock simulation matches GitHub checkout behavior and resolves dioxus 0.7.9 through Cargo metadata.
  • Local Playwright: npm run test:e2e -- --reporter=list passed, 48/48.
  • Local Pages build: dx build --release --base-path dioxus-bootstrap-css completed successfully without CLI/framework mismatch.
  • Forge Actions run 16: MSRV and Check/lint/format succeeded.
  • GitHub Actions: CI run 106, E2E run 51, and Pages run 68 succeeded.

Signed-by: mik-tf mik-tf@noreply.invalid

Implemented in `5f7647d` and `3e70893`. Changes: - Added `tools/install-dioxus-cli.sh` to install the `dioxus-cli` version matching the resolved `dioxus` package from Cargo metadata. - Updated GitHub Pages and E2E workflows to use the shared installer. - Updated Playwright web server startup to verify the compatible CLI before `dx serve`. - Updated the affected GitHub cache keys so the corrected CLI cache can refresh. - Documented the helper in `tools/README.md`. Validation: - Local installer resolves `dioxus-cli 0.7.9` and skips when already installed. - No-lock simulation matches GitHub checkout behavior and resolves `dioxus 0.7.9` through Cargo metadata. - Local Playwright: `npm run test:e2e -- --reporter=list` passed, 48/48. - Local Pages build: `dx build --release --base-path dioxus-bootstrap-css` completed successfully without CLI/framework mismatch. - Forge Actions run 16: MSRV and Check/lint/format succeeded. - GitHub Actions: CI run 106, E2E run 51, and Pages run 68 succeeded. Signed-by: mik-tf <mik-tf@noreply.invalid>
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/dioxus-bootstrap-css#4
No description provided.