Skip to content

Commit

Permalink
chore(goreleaser): update post hook script
Browse files Browse the repository at this point in the history
  • Loading branch information
luizfonseca committed May 13, 2024
1 parent 1549e1c commit be17f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-cross-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# rustup target add x86_64-unknown-linux-gnu
# rustup target add aarch64-apple-darwin

docker run --rm -v `pwd`:/app rust:slim-buster sh -c 'cd /app && cargo build --release --target=x86_64-unknown-linux-gnu'
cargo build --release --target=aarch64-apple-darwin
docker run --rm -v `pwd`:/app rust:slim-buster sh -c 'cd /app rustup target x86_64-unknown-linux-gnu && cargo build --release --target=x86_64-unknown-linux-gnu --bin proksi'
cargo build --release --target=aarch64-apple-darwin --bin proksi

mkdir -p dist/darwin_amd64 && cp target/x86_64-apple-darwin/release/proksi dist/darwin_amd64
mkdir -p dist/linux_amd64 && cp target/x86_64-unknown-linux-gnu/release/proksi dist/linux_amd64

0 comments on commit be17f63

Please sign in to comment.