Skip to content

Commit

Permalink
PMerge remote-tracking branch 'origin/master' into phoebe/data-size-sku
Browse files Browse the repository at this point in the history
  • Loading branch information
gefjon committed Jan 31, 2025
2 parents 8190625 + 6f20597 commit 752bbc5
Show file tree
Hide file tree
Showing 462 changed files with 4,176 additions and 1,513 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20 # on a successful run, runs in 8 minutes
container:
image: rust:1.78
image: rust:1.83.0
options: --privileged
# filter for a comment containing 'benchmarks please'
if: ${{ github.event_name != 'issue_comment' || (github.event.issue.pull_request && contains(github.event.comment.body, 'benchmarks please')) }}
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/linux-build.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/macos-build.yml

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Package SpacetimeDB CLI

on:
push:
tags:
- '**'
branches:
- master
- release/*

jobs:
build-cli:
strategy:
fail-fast: false
matrix:
include:
- { name: x86_64 Linux, target: x86_64-unknown-linux-gnu, runner: bare-metal }
- { name: aarch64 Linux, target: aarch64-unknown-linux-gnu, runner: arm-runner }
- { name: aarch64 macOS, target: aarch64-apple-darwin, runner: macos-latest }
- { name: x86_64 macOS, target: x86_64-apple-darwin, runner: macos-latest }
- { name: x86_64 Windows, target: x86_64-pc-windows-msvc, runner: windows-latest }

name: Build CLI for ${{ matrix.name }}
runs-on: ${{ matrix.runner }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Show arch
run: uname -a

- name: Install Rust
uses: dsherret/rust-toolchain-file@v1

- name: Install rust target
run: rustup target add ${{ matrix.target }}

- name: Compile
run: |
cargo build --release --target ${{ matrix.target }} -p spacetimedb-cli -p spacetimedb-standalone -p spacetimedb-update
- name: Package (unix)
if: ${{ runner.os != 'Windows' }}
run: |
mkdir build
cd target/${{matrix.target}}/release
tar -czf ../../../build/spacetime-${{matrix.target}}.tar.gz spacetimedb-{cli,standalone,update}
- name: Package (windows)
if: ${{ runner.os == 'Windows' }}
run: |
mkdir build
cd target/${{matrix.target}}/release
7z a ../../../build/spacetime-${{matrix.target}}.zip spacetimedb-cli.exe spacetimedb-standalone.exe spacetimedb-update.exe
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Upload to DO Spaces
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ vars.AWS_BUCKET }}
source_dir: build
endpoint: https://nyc3.digitaloceanspaces.com
destination_dir: ${{ steps.extract_branch.outputs.branch }}
41 changes: 0 additions & 41 deletions .github/workflows/windows-build.yml

This file was deleted.

Loading

0 comments on commit 752bbc5

Please sign in to comment.