Skip to content

Commit

Permalink
Use spacetime as a binary name in gz
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Sep 28, 2023
1 parent 9b39d4a commit ce20781
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/linux-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ jobs:
docker cp $id:/usr/local/bin/spacetime - > build/spacetime.linux-arm64.tar
docker rm -v $id
cd build
# unpack the tar to change the name of the binary
tar -xvf spacetime.linux-arm64.tar
mv spacetime spacetime.linux-arm64
tar -czf spacetime.linux-arm64.tar.gz spacetime.linux-arm64
gzip spacetime.linux-arm64.tar
- name: Compile x86
run: |
cargo build --release -p spacetimedb-cli
mv target/release/spacetime build/spacetime.linux-amd64
cd build && tar -czf spacetime.linux-amd64.tar.gz spacetime.linux-amd64
mv target/release/spacetime build/spacetime
cd build && tar -czf spacetime.linux-amd64.tar.gz spacetime
rm spacetime
- name: Extract branch name
shell: bash
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ jobs:
run: |
cargo build --release -p spacetimedb-cli
mkdir build
mv target/release/spacetime build/spacetime.darwin-amd64
cd build && tar -czf spacetime.darwin-amd64.tar.gz spacetime.darwin-amd64
mv target/release/spacetime build/spacetime
cd build && tar -czf spacetime.darwin-amd64.tar.gz spacetime
rm spacetime
- name: Compile Aarch64
run: |
cargo build --release -p spacetimedb-cli --target=aarch64-apple-darwin
mv target/aarch64-apple-darwin/release/spacetime build/spacetime.darwin-arm64
cd build && tar -czf spacetime.darwin-arm64.tar.gz spacetime.darwin-arm64
mv target/aarch64-apple-darwin/release/spacetime build/spacetime
cd build && tar -czf spacetime.darwin-arm64.tar.gz spacetime
rm spacetime
- name: Extract branch name
shell: bash
Expand Down

0 comments on commit ce20781

Please sign in to comment.