Skip to content
Open
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
58 changes: 12 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ jobs:
name: Smoketests
strategy:
matrix:
runner: [spacetimedb-new-runner, windows-latest]
runner: [spacetimedb-new-runner-2, windows-latest]
include:
- runner: spacetimedb-new-runner
- runner: spacetimedb-new-runner-2
smoketest_args: --docker
container:
image: localhost:5000/spacetimedb-ci:latest
options: --privileged
- runner: windows-latest
smoketest_args: --no-build-cli
container: null
Expand Down Expand Up @@ -86,10 +83,6 @@ jobs:
shell: powershell
- name: Build crates
run: cargo build -p spacetimedb-cli -p spacetimedb-standalone -p spacetimedb-update
- name: Start Docker daemon
if: runner.os == 'Linux'
run: /usr/local/bin/start-docker.sh

- name: Build and start database (Linux)
if: runner.os == 'Linux'
run: |
Expand Down Expand Up @@ -123,11 +116,8 @@ jobs:
test:
needs: [lints]
name: Test Suite
runs-on: spacetimedb-new-runner
container:
image: localhost:5000/spacetimedb-ci:latest
options: >-
--privileged
runs-on: spacetimedb-new-runner-2

env:
CARGO_TARGET_DIR: ${{ github.workspace }}/target
steps:
Expand Down Expand Up @@ -180,11 +170,7 @@ jobs:

lints:
name: Lints
runs-on: spacetimedb-new-runner
container:
image: localhost:5000/spacetimedb-ci:latest
options: >-
--privileged
runs-on: spacetimedb-new-runner-2
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/target
steps:
Expand Down Expand Up @@ -212,11 +198,7 @@ jobs:

wasm_bindings:
name: Build and test wasm bindings
runs-on: spacetimedb-new-runner
container:
image: localhost:5000/spacetimedb-ci:latest
options: >-
--privileged
runs-on: spacetimedb-new-runner-2
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/target
steps:
Expand All @@ -239,11 +221,7 @@ jobs:

publish_checks:
name: Check that packages are publishable
runs-on: spacetimedb-new-runner
container:
image: localhost:5000/spacetimedb-ci:latest
options: >-
--privileged
runs-on: spacetimedb-new-runner-2
permissions: read-all
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -272,11 +250,8 @@ jobs:
strategy:
matrix:
include:
- runner: spacetimedb-new-runner
- runner: spacetimedb-new-runner-2
target: x86_64-unknown-linux-gnu
container:
image: localhost:5000/spacetimedb-ci:latest
options: --privileged
- { target: aarch64-unknown-linux-gnu, runner: arm-runner }
- { target: aarch64-apple-darwin, runner: macos-latest }
- { target: x86_64-pc-windows-msvc, runner: windows-latest }
Expand Down Expand Up @@ -324,7 +299,7 @@ jobs:
name: Unreal Engine Tests
# This can't go on e.g. ubuntu-latest because that runner runs out of disk space. ChatGPT suggested that the general solution tends to be to use
# a custom runner.
runs-on: spacetimedb-new-runner
runs-on: spacetimedb-new-runner-2
# Disable the tests because they are very flaky at the moment.
# TODO: Remove this line and re-enable the `if` line just below here.
if: false
Expand Down Expand Up @@ -411,7 +386,7 @@ jobs:

ci_command_docs:
name: Check CI command docs
runs-on: ubuntu-latest
runs-on: spacetimedb-new-runner-2
steps:
- name: Find Git ref
env:
Expand Down Expand Up @@ -439,11 +414,7 @@ jobs:
cli_docs:
name: Check CLI docs
permissions: read-all
runs-on: spacetimedb-new-runner
container:
image: localhost:5000/spacetimedb-ci:latest
options: >-
--privileged
runs-on: spacetimedb-new-runner-2
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/target
steps:
Expand Down Expand Up @@ -658,12 +629,7 @@ jobs:

csharp-testsuite:
needs: [lints]
runs-on: spacetimedb-new-runner
container:
image: localhost:5000/spacetimedb-ci:latest
options: >-
--privileged
--cgroupns=host
runs-on: spacetimedb-new-runner-2
timeout-minutes: 30
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/target
Expand Down
Loading