Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion tools/ci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
Loading