mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
- Pin the rust and alpine images by digest - Check that the rust image matches rust-toolchain - Install pinned zig 0.17.0 and cargo-zigbuild 0.23.4 - Install cargo-zigbuild before the source copy, to cache it - Build on linux/arm64 on every host, with docker or podman - Use 8-character commit IDs and read RADICLE_HTTPD_VERSION - Name the tagged commit in the announcement, not a build ID - Link macOS binaries with -dead_strip_dylibs and -rtlib=none - Move signing out of build into build/sign, which checks checksums - Fix Dockerfile lint warnings
17 lines
481 B
Bash
Executable File
17 lines
481 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# CI sets the version from the tag it builds, since its checkout can lack the
|
|
# tag ref that `git describe` needs.
|
|
if [ -n "$RADICLE_HTTPD_VERSION" ]; then
|
|
echo "$RADICLE_HTTPD_VERSION"
|
|
exit
|
|
fi
|
|
|
|
if ! version="$(git describe --match='releases/httpd/*' --candidates=1 --abbrev=8 2>/dev/null)"; then
|
|
echo "fatal: no version tag found by 'git describe'" >&2 ; exit 1
|
|
fi
|
|
# Remove `releases/httpd/` prefix from version.
|
|
version=${version#releases/httpd/}
|
|
|
|
echo $version
|