Skip to content

Commit f80ad6b

Browse files
KenJones-Modularmodularbot
authored andcommitted
[puzzles] Publish the GPU Puzzles site from monorepo CI
The puzzles.modular.com site is now built and published by Modular's release pipeline instead of a workflow in this repository, and each release is tagged so learners can return to it. MODULAR_ORIG_COMMIT_REV_ID: 4ad6aa6de16b7dcee7cc28277e1b4a436c537fa9
1 parent cca8e67 commit f80ad6b

2 files changed

Lines changed: 20 additions & 77 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 0 additions & 74 deletions
This file was deleted.

‎pixi.toml‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,28 @@ pytorch-triton-rocm = {version = "*", index = "https://download.pytorch.org/whl/
4848
[feature.apple]
4949
platforms = ["osx-arm64-macos-15-0", "linux-64", "linux-aarch64"]
5050

51-
# Building the book compiles nothing, so it must not inherit the GPU platform
52-
# requirements: the publish runner has no CUDA, and a pixi that enforced them
53-
# would break the deploy with no content change.
51+
# The book compiles nothing, so it skips the GPU platform requirements (the
52+
# publish runner has no CUDA).
5453
[feature.book]
5554
platforms = ["linux-64", "linux-aarch64", "osx-arm64"]
5655

56+
# Toolchain-free environment for the release publish job: mdbook, python for
57+
# book.toml's `youtube` preprocessor, and bash. `no-default-feature` drops
58+
# `max`, `mojo` and `manim`. Separate from `feature.book` so the `book`
59+
# environment keeps its toolchain and puzzle tasks.
60+
[feature.book-render]
61+
platforms = ["linux-64", "linux-aarch64", "osx-arm64"]
62+
63+
[feature.book-render.dependencies]
64+
python = "==3.12"
65+
mdbook = ">=0.4.48,<0.5"
66+
bash = ">=5.2.21,<6"
67+
68+
# `[tasks]` belongs to the default feature, which `no-default-feature` drops, so
69+
# the render environment declares the one task it needs.
70+
[feature.book-render.tasks]
71+
build-book = { cmd = "bash scripts/build_book.sh", description = "Build the mdbook with no toolchain installed -- what the release publish job runs" }
72+
5773
[dependencies]
5874
python = "==3.12"
5975
mojo = "*" # includes `mojo-compiler`, lsp, debugger, formatter etc.
@@ -68,6 +84,7 @@ nvidia = { features = ["nvidia"], solve-group = "nvidia" }
6884
amd = { features = ["amd"], solve-group = "amd" }
6985
apple = { features = ["apple"], solve-group = "apple" }
7086
book = { features = ["book"] }
87+
book-render = { features = ["book-render"], no-default-feature = true }
7188
default = { features = ["nvidia"] }
7289

7390
[tasks]

0 commit comments

Comments
 (0)