Skip to content

Commit 2e67659

Browse files
Merge branch 'master' into tyler/docs-reorg
2 parents f300732 + 582c846 commit 2e67659

183 files changed

Lines changed: 11717 additions & 1079 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Attach client binaries to release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_tag:
7+
description: "Release tag (e.g. v1.9.0)"
8+
required: true
9+
10+
jobs:
11+
upload-assets:
12+
runs-on: spacetimedb-new-runner
13+
container:
14+
image: localhost:5000/spacetimedb-ci:latest
15+
options: >-
16+
--privileged
17+
permissions:
18+
contents: write # needed to modify releases
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Download artifacts from private base URL
25+
env:
26+
RELEASE_TAG: ${{ github.event.inputs.release_tag }}
27+
BASE_URL: ${{ secrets.ARTIFACT_BASE_URL }}
28+
run: |
29+
set -euo pipefail
30+
31+
FULL_URL="$BASE_URL/$RELEASE_TAG"
32+
33+
mkdir -p artifacts
34+
cd artifacts
35+
36+
download() {
37+
local filename="$1"
38+
if ! wget -q "${FULL_URL}/${filename}" -O "${filename}"; then
39+
echo "Failed to download ${filename}"
40+
exit 1
41+
fi
42+
}
43+
44+
download "spacetime-aarch64-apple-darwin.tar.gz"
45+
download "spacetime-aarch64-unknown-linux-gnu.tar.gz"
46+
download "spacetime-x86_64-apple-darwin.tar.gz"
47+
download "spacetime-x86_64-pc-windows-msvc.zip"
48+
download "spacetime-x86_64-unknown-linux-gnu.tar.gz"
49+
download "spacetimedb-update-aarch64-apple-darwin"
50+
download "spacetimedb-update-aarch64-unknown-linux-gnu"
51+
download "spacetimedb-update-x86_64-apple-darwin"
52+
download "spacetimedb-update-x86_64-pc-windows-msvc.exe"
53+
download "spacetimedb-update-x86_64-unknown-linux-gnu"
54+
55+
- name: Upload artifacts to GitHub Release
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
RELEASE_TAG: ${{ github.event.inputs.release_tag }}
59+
run: |
60+
set -euo pipefail
61+
62+
cd artifacts
63+
64+
gh release upload "$RELEASE_TAG" ./* \
65+
--repo "$GITHUB_REPOSITORY" \
66+
--clobber
67+

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,11 @@ jobs:
362362
# 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
363363
# a custom runner.
364364
runs-on: spacetimedb-new-runner
365+
# Disable the tests because they are very flaky at the moment.
366+
# TODO: Remove this line and re-enable the `if` line just below here.
367+
if: false
365368
# Skip if this is an external contribution. GitHub secrets will be empty, so the step would fail anyway.
366-
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }}
369+
# if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }}
367370
container:
368371
image: ghcr.io/epicgames/unreal-engine:dev-5.6
369372
credentials:

.github/workflows/discord-posts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
--json 'workflow,state,name' |
3737
jq '.[]
3838
| select(.workflow != "Discord notifications")
39-
| select(.state != "SUCCESS" and .state != "NEUTRAL")
39+
| select(.state != "SUCCESS" and .state != "NEUTRAL" and .state != "SKIPPED")
4040
' |
4141
jq -r '"\(.workflow) / \(.name): \(.state)"'
4242
)"

.github/workflows/package.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- { name: x86_64 Linux, target: x86_64-unknown-linux-gnu, runner: ubuntu-latest }
17+
- name: x86_64 Linux
18+
target: x86_64-unknown-linux-gnu
19+
runner: spacetimedb-new-runner
20+
container:
21+
image: localhost:5000/spacetimedb-ci:latest
22+
options: >-
23+
--privileged
1824
- { name: aarch64 Linux, target: aarch64-unknown-linux-gnu, runner: arm-runner }
1925
# Disabled because musl builds weren't working and we didn't want to investigate. See https://github.com/clockworklabs/SpacetimeDB/pull/2964.
2026
# - { name: x86_64 Linux musl, target: x86_64-unknown-linux-musl, runner: bare-metal, container: alpine }

0 commit comments

Comments
 (0)