Files
heartwood/.github/workflows/build.bash
T
Alexis Sellier af28a0ca07 docs: Add rad.1 manual page
This is a general guide to getting started on radicle, available as a
man page.

We also make sure that the page is built on release.
2023-07-20 10:54:05 +02:00

38 lines
923 B
Bash
Executable File

#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
main () {
if [[ $# -ne 1 ]]; then
echo "$#: Wrong number of arguments"
return 1
fi
local target=$1
rustup target add "$target"
local staging="radicle-$target"
mkdir -p "$staging"
cargo build --target="$target" --package=radicle-httpd --release
cp target/"$target"/release/radicle-httpd "$staging"/
cargo build --target="$target" --package=radicle-node --release
cp target/"$target"/release/radicle-node "$staging"/
cargo build --target="$target" --bin rad --release
cp target/"$target"/release/rad "$staging"/
cargo build --target="$target" --bin git-remote-rad --release
cp target/"$target"/release/git-remote-rad "$staging"/
./build-man-pages.sh "$staging" "$(find . -name '*.1.adoc')"
tar czf "$staging.tar.gz" "$staging"
cp "$staging.tar.gz" "$staging"/
}
main "$@"