diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f7319726f1..7db60f9e434 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -389,28 +389,10 @@ jobs: shell: bash run: sudo apt install -y libssl-dev - - name: Build spacetimedb-update - run: cargo build --features github-token-auth --target ${{ matrix.target }} -p spacetimedb-update - if: runner.os == 'Windows' - - - name: Run self-install - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: | - ROOT_DIR="$(mktemp -d)" - # NOTE(bfops): We need the `github-token-auth` feature because we otherwise tend to get ratelimited when we try to fetch `/releases/latest`. - # My best guess is that, on the GitHub runners, the "anonymous" ratelimit is shared by *all* users of that runner (I think this because it - # happens very frequently on the `macos-runner`, but we haven't seen it on any others). - cargo run --features github-token-auth --target ${{ matrix.target }} -p spacetimedb-update -- self-install --root-dir="${ROOT_DIR}" --yes - "${ROOT_DIR}"/spacetime --root-dir="${ROOT_DIR}" help - if: runner.os == 'Windows' - - name: Test spacetimedb-update env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: cargo ci update-flow --target=${{ matrix.target }} --github-token-auth - if: runner.os != 'Windows' unreal_engine_tests: name: Unreal Engine Tests diff --git a/tools/ci/src/main.rs b/tools/ci/src/main.rs index 89507335753..b5436e5bec1 100644 --- a/tools/ci/src/main.rs +++ b/tools/ci/src/main.rs @@ -587,7 +587,12 @@ fn main() -> Result<()> { .chain(["--", "self-install", &root_arg, "--yes"].into_iter()), ) .run()?; - cmd!(format!("{}/spacetime", root_dir_string), &root_arg, "help",).run()?; + + let mut spacetime_path = root_dir.path().join("spacetime"); + if !std::env::consts::EXE_EXTENSION.is_empty() { + spacetime_path.set_extension(std::env::consts::EXE_EXTENSION); + } + cmd(spacetime_path, [&root_arg, "help"]).run()?; } Some(CiCmd::CliDocs { spacetime_path }) => {