-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from victorhqc/build/small-changes
build: move scripts
- Loading branch information
Showing
5 changed files
with
23 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
build: | ||
./build.sh julie-vic-wedding-api $(version) ubuntu | ||
./scripts/build.sh julie-vic-wedding-api $(version) | ||
|
||
build_in_github: | ||
./build_in_github.sh | ||
./scripts/build_in_github.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# | ||
# Usage: ./build_in_github | ||
# | ||
# The latest version of this script is available at | ||
# https://github.com/emk/rust-musl-builder/blob/master/examples/build-release | ||
|
||
set -euo pipefail | ||
|
||
rust-musl-builder() { | ||
docker run --rm -i -v "$(pwd)":/home/rust/src -v cargo-registry:/home/rust/.cargo/registry ekidd/rust-musl-builder "$@" | ||
} | ||
|
||
echo "Building static binaries using ekidd/rust-musl-builder" | ||
rust-musl-builder sudo chown -R rust:rust /home/rust | ||
rust-musl-builder sudo chown -R rust:rust /home/rust/.cargo/registry | ||
rust-musl-builder cargo build --release | ||
|