Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try local arm64 compile one more time
Browse files Browse the repository at this point in the history
drogus committed Sep 28, 2023
1 parent 16a1f0a commit 2844b9d
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/linux-client.yml
Original file line number Diff line number Diff line change
@@ -15,22 +15,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Compile Aarch64 Docker
- name: Add aarch64 target
run: |
docker build --platform=linux/amd64 -f crates/cli/Dockerfile -t cli .
mkdir build
id=$(docker create cli)
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
rustup target add aarch64-unknown-none
- name: Install gcc-aarch64-linux-gnu
run: sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

- name: Compile Aarch64
run: |
cargo build --release -p spacetimedb-cli --target=aarch64-unknown-none
mv target/aarch64-unknown-none/release/spacetime build/spacetime.linux-arm64
cd build && tar -czf spacetime.linux-arm64.tar.gz spacetime.linux-arm64
- name: Compile x86
run: |
cargo build --release -p spacetimedb-cli
mkdir build
mv target/release/spacetime build/spacetime.linux-amd64
cd build && tar -czf spacetime.linux-amd64.tar.gz spacetime.linux-amd64

0 comments on commit 2844b9d

Please sign in to comment.