build: Move/rename build steps

This commit is contained in:
cloudhead 2024-04-29 11:14:09 +02:00
parent 0c93a1c1a4
commit 97b1a5de53
No known key found for this signature in database
7 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ be reproducible, byte for byte.
To run the build, simply enter the following command from the repository root: 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 This will build all targets and place the output in `build/artifacts` with
one sub-directory per build target. 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 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 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. the artifacts are built.
## Requirements ## Requirements

View File

@ -25,7 +25,7 @@ main() {
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
gitarchive="$tempdir/heartwood-$rev.tar.gz" gitarchive="$tempdir/heartwood-$rev.tar.gz"
keypath="$(rad path)/keys/radicle.pub" keypath="$(rad path)/keys/radicle.pub"
version="$(build/version.sh)" version="$(build/version)"
image=radicle-build-$version image=radicle-build-$version
if [ ! -f "$keypath" ]; then if [ ! -f "$keypath" ]; then
@ -54,7 +54,7 @@ main() {
mkdir -p $outdir mkdir -p $outdir
podman cp --overwrite radicle-build-container:/builds/. $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.." echo "Signing artifacts for $target.."
filename="radicle-$version-$target.tar.xz" filename="radicle-$version-$target.tar.xz"
@ -83,7 +83,7 @@ main "$@"
# Show artifact checksums. # Show artifact checksums.
echo echo
build/checksums.sh build/checksums
echo echo
echo "Build ran successfully." echo "Build ran successfully."

View File

@ -6,7 +6,7 @@ SSH_ADDRESS=${SSH_ADDRESS:-$SSH_LOGIN@files.radicle.xyz}
SSH_KEY="$(rad path)/keys/radicle" SSH_KEY="$(rad path)/keys/radicle"
main() { main() {
version="$(build/version.sh)" version="$(build/version)"
echo "Uploading Radicle $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-$version* $SSH_ADDRESS:/mnt/radicle/files/releases/$version
scp -i $SSH_KEY build/artifacts/radicle.json $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 archive=/mnt/radicle/files/releases/$version/radicle-$version-$target.tar.xz
symlink=/mnt/radicle/files/releases/$version/radicle-$target.tar.xz symlink=/mnt/radicle/files/releases/$version/radicle-$target.tar.xz