Skip to content

Commit

Permalink
Use dd on mac because cp doesn't support the option we need
Browse files Browse the repository at this point in the history
  • Loading branch information
John Detter committed Nov 9, 2023
1 parent ce266e4 commit 13625a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
run: |
cargo build --release -p spacetimedb-cli
mkdir build
cp --sparse=never target/release/spacetime build/spacetime
dd if=target/release/spacetime of=build/spacetime conv=noerror,sync
sudo apt install libarchive-tools
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
cp --sparse=never target/aarch64-apple-darwin/release/spacetime build/spacetime
dd if=target/aarch64-apple-darwin/release/spacetime of=build/spacetime conv=noerror,sync
cd build && tar -czf spacetime.darwin-arm64.tar.gz spacetime
rm spacetime
Expand Down

0 comments on commit 13625a2

Please sign in to comment.