diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2021-09-06 09:10:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 09:10:05 -0400 |
commit | 214cb3a41e86bc11c825b9ed8ff2513d4e69c72d (patch) | |
tree | 0dafc60c9701d2681bfdb45160c8271d3ca33a85 /.travis | |
parent | 86bec920ef41913a0670c6f1be526c79bdbb8bf1 (diff) |
Embed build architecture in static build archive names. (#11463)
* Embed build architecture in static build archive names.
This is required for proper support for static installs in the new
kickstart script.
The associated changes will also simplify adding static builds for other
architectures in the future.
* Update CI to use new static build changes properly.
* Fix typos.
* Fix link created by static build process.
* Fix build environment setup.
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/create_artifacts.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/.travis/create_artifacts.sh b/.travis/create_artifacts.sh index 287f45c1c2..ddeff94c8b 100755 --- a/.travis/create_artifacts.sh +++ b/.travis/create_artifacts.sh @@ -67,8 +67,12 @@ make dist mv "${BASENAME}.tar.gz" artifacts/ echo "--- Create self-extractor ---" -command -v git > /dev/null && [ -d .git ] && git clean -d -f -./packaging/makeself/build-x86_64-static.sh +sxarches="x86_64" +for arch in ${sxarches}; do + git clean -d -f + rm -rf packating/makeself/tmp + ./packaging/makeself/build-static.sh ${arch} +done # Needed for GCS echo "--- Copy artifacts to separate directory ---" @@ -76,7 +80,13 @@ echo "--- Copy artifacts to separate directory ---" cp packaging/version artifacts/latest-version.txt cd artifacts ln -s "${BASENAME}.tar.gz" netdata-latest.tar.gz + +for arch in ${sxarches}; do + ln -s "netdata-${arch}-$(git describe).gz.run" netdata-${arch}-latest.gz.run +done + ln -s "${BASENAME}.gz.run" netdata-latest.gz.run + sha256sum -b ./* > "sha256sums.txt" echo "checksums:" cat sha256sums.txt |