Skip to content

Commit

Permalink
No need to install rust?
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Sep 28, 2023
1 parent 20f7723 commit aeb78fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ jobs:
- name: Install Rust
run: |
rustup target add aarch64-apple-darwin
curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Show arch
run: uname -a

- name: Compile
run: cargo build --release -p spacetimedb-cli --target=aarch64-apple-darwin
- name: Compile x86
run: |
cargo build --release -p spacetimedb-cli
mkdir build
mv target/release/spacetime build/spacetime-darwin-x86
- name: Compile Aarch64
run: |
cargo build --release -p spacetimedb-cli --target=aarch64-apple-darwin
mv target/release/spacetime build/spacetime-darwin-aarch64
20 changes: 13 additions & 7 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@ name: Build Windows SpacetimeDB client
on: [push]

jobs:
macos-client:
windows-client:
runs-on: windows-latest

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

- name: Install Rust
run: |
rustup target add aarch64-apple-darwin
curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Show arch
run: uname -a

- name: Compile
run: cargo build --release -p spacetimedb-cli
run: |
cargo build --release -p spacetimedb-cli
mkdir build
mv target/release/spacetime build/spacetime-windows-x86
- 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: ${{ secrets.AWS_BUCKET }}
source_dir: build

0 comments on commit aeb78fe

Please sign in to comment.