diff options
| author | diogo464 <[email protected]> | 2022-09-23 14:12:45 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2022-09-23 14:21:20 +0100 |
| commit | 839c461fc0dddad7eeff5c2f0419f5f504e37522 (patch) | |
| tree | 7f3faf6184ff24f56cb011b7bcdd7db70092aa37 /prepare_binaries.sh | |
| parent | 8f3b3dc4679a361f31a4d790372f2baf53a115bd (diff) | |
added github action to release binaries0.1.0
Diffstat (limited to 'prepare_binaries.sh')
| -rwxr-xr-x | prepare_binaries.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/prepare_binaries.sh b/prepare_binaries.sh new file mode 100755 index 0000000..ad74552 --- /dev/null +++ b/prepare_binaries.sh | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if [ "$1" = "linux" ]; then | ||
| 4 | rustup target install x86_64-unknown-linux-musl || exit 1 | ||
| 5 | cargo build --target-dir target/ --target x86_64-unknown-linux-musl --release || exit 1 | ||
| 6 | mv target/x86_64-unknown-linux-musl/release/dotup "dotup_x86_64-unknown-linux-musl" | ||
| 7 | fi | ||
| 8 | |||
| 9 | if [ "$1" = "macos" ]; then | ||
| 10 | rustup target install x86_64-apple-darwin || exit 1 | ||
| 11 | cargo build --target-dir target/ --target x86_64-apple-darwin --release || exit 1 | ||
| 12 | mv target/x86_64-apple-darwin/release/dotup "dotup_x86_64-apple-darwin" | ||
| 13 | fi | ||
