From 23a96989d86ebad5ddaac83c93f079122da3319b Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 20 Sep 2026 20:00:40 +0000 Subject: [PATCH] Fix brittle binary execution in CI pipeline The "Verify hello world example" CI step previously relied on a bash `if/else` block and hardcoded OS-specific paths (e.g., `target/release/tsc.exe` on Windows) to execute the compiled binary. This approach was brittle and failing in the Ubuntu pipeline. This commit replaces the manual shell execution with `cargo run --bin tsc --release`, delegating the execution logic to Cargo. Cargo abstracts platform differences and reliably handles running the workspace binary. Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- .github/workflows/ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80bcbd6d..ef340ad7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,8 +51,4 @@ jobs: - name: Verify hello world example shell: bash run: | - if [ "${{ matrix.os }}" = "windows-latest" ]; then - target/release/tsc.exe run examples/hello_world/hello.txs - else - target/release/tsc run examples/hello_world/hello.txs - fi + cargo run --bin tsc --release -- run examples/hello_world/hello.txs