build: Move/rename build steps
This commit is contained in:
parent
0c93a1c1a4
commit
97b1a5de53
|
|
@ -14,7 +14,7 @@ be reproducible, byte for byte.
|
|||
|
||||
To run the build, simply enter the following command from the repository root:
|
||||
|
||||
build/build.sh
|
||||
build/build
|
||||
|
||||
This will build all targets and place the output in `build/artifacts` with
|
||||
one sub-directory per build target.
|
||||
|
|
@ -36,7 +36,7 @@ Here's an example output for a development version of Radicle:
|
|||
1a8327854f16ea90491fb90e0c3291a63c4b2ab01742c8435faec7d370cacb79 radicle-1.0.0-rc.4-3-gb299f3b5-x86_64-apple-darwin.tar.xz
|
||||
709ac67541ff0c0c570ac22ab2de9f98320e0cc2cc9b67f1909c014a2bb5bd49 radicle-1.0.0-rc.4-3-gb299f3b5-x86_64-unknown-linux-musl.tar.xz
|
||||
|
||||
A script is included in `build/checksums.sh` to output these checksums after
|
||||
A script is included in `build/checksums` to output these checksums after
|
||||
the artifacts are built.
|
||||
|
||||
## Requirements
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ main() {
|
|||
tempdir="$(mktemp -d)"
|
||||
gitarchive="$tempdir/heartwood-$rev.tar.gz"
|
||||
keypath="$(rad path)/keys/radicle.pub"
|
||||
version="$(build/version.sh)"
|
||||
version="$(build/version)"
|
||||
image=radicle-build-$version
|
||||
|
||||
if [ ! -f "$keypath" ]; then
|
||||
|
|
@ -54,7 +54,7 @@ main() {
|
|||
mkdir -p $outdir
|
||||
podman cp --overwrite radicle-build-container:/builds/. $outdir
|
||||
|
||||
for target in $(cat build/targets); do
|
||||
for target in $(cat build/TARGETS); do
|
||||
echo "Signing artifacts for $target.."
|
||||
|
||||
filename="radicle-$version-$target.tar.xz"
|
||||
|
|
@ -83,7 +83,7 @@ main "$@"
|
|||
|
||||
# Show artifact checksums.
|
||||
echo
|
||||
build/checksums.sh
|
||||
build/checksums
|
||||
echo
|
||||
|
||||
echo "Build ran successfully."
|
||||
|
|
@ -6,7 +6,7 @@ SSH_ADDRESS=${SSH_ADDRESS:-$SSH_LOGIN@files.radicle.xyz}
|
|||
SSH_KEY="$(rad path)/keys/radicle"
|
||||
|
||||
main() {
|
||||
version="$(build/version.sh)"
|
||||
version="$(build/version)"
|
||||
|
||||
echo "Uploading Radicle $version..."
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ main() {
|
|||
scp -i $SSH_KEY build/artifacts/radicle-$version* $SSH_ADDRESS:/mnt/radicle/files/releases/$version
|
||||
scp -i $SSH_KEY build/artifacts/radicle.json $SSH_ADDRESS:/mnt/radicle/files/releases/$version
|
||||
|
||||
for target in $(cat build/targets); do
|
||||
for target in $(cat build/TARGETS); do
|
||||
archive=/mnt/radicle/files/releases/$version/radicle-$version-$target.tar.xz
|
||||
symlink=/mnt/radicle/files/releases/$version/radicle-$target.tar.xz
|
||||
|
||||
Loading…
Reference in New Issue