diff --git a/.github/workflows/linux-client.yml b/.github/workflows/linux-client.yml index 32f613e5fb..69590f2fe2 100644 --- a/.github/workflows/linux-client.yml +++ b/.github/workflows/linux-client.yml @@ -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 diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml index 3bfa2bc400..75d93bf342 100644 --- a/.github/workflows/macos-build.yml +++ b/.github/workflows/macos-build.yml @@ -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