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}} 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'