From 448ec61cb08cb6f60c46a6220092f0e284dc75ce Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:22:35 +0900 Subject: [PATCH 1/2] Install lib in-place for docs build --- .../workflows/{% if add_docs %}docs.yaml{% endif %}.jinja | 2 +- .../workflows/{% if add_docs %}docs.yaml{% endif %}.jinja | 2 +- .../workflows/{% if add_docs %}docs.yaml{% endif %}.jinja | 2 +- .../workflows/{% if add_docs %}docs.yaml{% endif %}.jinja | 2 +- .../workflows/{% if add_docs %}docs.yaml{% endif %}.jinja | 2 +- .../workflows/{% if add_docs %}docs.yaml{% endif %}.jinja | 2 +- .../workflows/{% if add_docs %}docs.yaml{% endif %}.jinja | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cpp/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja b/cpp/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja index c3a89e9..922747a 100644 --- a/cpp/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja +++ b/cpp/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja @@ -32,7 +32,7 @@ jobs: - name: Install from wheel run: | - uv pip install dist/*.whl + uv pip install dist/*.whl --target . uv pip install yardang if: github.event_name == 'workflow_run' diff --git a/cppjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja b/cppjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja index 4a3263f..0b128d3 100644 --- a/cppjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja +++ b/cppjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja @@ -32,7 +32,7 @@ jobs: - name: Install from wheel run: | - uv pip install dist/*.whl + uv pip install dist/*.whl --target . uv pip install yardang if: github.event_name == 'workflow_run' diff --git a/js/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja b/js/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja index ef55d05..82ece6e 100644 --- a/js/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja +++ b/js/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja @@ -32,7 +32,7 @@ jobs: - name: Install from wheel run: | - uv pip install dist/*.whl + uv pip install dist/*.whl --target . uv pip install yardang if: github.event_name == 'workflow_run' diff --git a/jupyter/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja b/jupyter/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja index ef55d05..82ece6e 100644 --- a/jupyter/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja +++ b/jupyter/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja @@ -32,7 +32,7 @@ jobs: - name: Install from wheel run: | - uv pip install dist/*.whl + uv pip install dist/*.whl --target . uv pip install yardang if: github.event_name == 'workflow_run' diff --git a/python/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja b/python/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja index ef55d05..82ece6e 100644 --- a/python/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja +++ b/python/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja @@ -32,7 +32,7 @@ jobs: - name: Install from wheel run: | - uv pip install dist/*.whl + uv pip install dist/*.whl --target . uv pip install yardang if: github.event_name == 'workflow_run' diff --git a/rust/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja b/rust/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja index ef55d05..82ece6e 100644 --- a/rust/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja +++ b/rust/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja @@ -32,7 +32,7 @@ jobs: - name: Install from wheel run: | - uv pip install dist/*.whl + uv pip install dist/*.whl --target . uv pip install yardang if: github.event_name == 'workflow_run' diff --git a/rustjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja b/rustjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja index f4dad01..c668355 100644 --- a/rustjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja +++ b/rustjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja @@ -32,7 +32,7 @@ jobs: - name: Install from wheel run: | - uv pip install dist/*.whl + uv pip install dist/*.whl --target . uv pip install yardang if: github.event_name == 'workflow_run' From 86281d523e61acaf64d1684b0133dadf50fc6b7a Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:29:21 +0900 Subject: [PATCH 2/2] filter build stages --- .github/workflows/build.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c58a0a4..d142076 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -66,17 +66,22 @@ jobs: elif [[ "$RUNNER_OS" == "macOS" ]]; then brew install clang-format fi + if: matrix.template == 'cpp' || matrix.template == 'cppjswasm' - uses: actions-ext/node/setup@main with: version: 22.x js_folder: "." + if: matrix.template == 'js' || matrix.template == 'jupyter' || matrix.template == 'cppjswasm' || matrix.template == 'rustjswasm' - uses: actions-ext/rust/setup@main + if: matrix.template == 'rust' || matrix.template == 'rustjswasm' - - run: | - pnpm install - cargo build + - run: pnpm install + if: matrix.template == 'js' || matrix.template == 'jupyter' || matrix.template == 'cppjswasm' || matrix.template == 'rustjswasm' + + - run: cargo build + if: matrix.template == 'rust' || matrix.template == 'rustjswasm' - run: | make gen-${{matrix.template}}