Commit graph

28 commits

Author SHA1 Message Date
Boris Nagaev
d3aae949dc
release: use Go 1.26.0 2026-03-02 15:08:11 -05:00
Boris Nagaev
d677e9d7e6
multi: downgrade Go to 1.24.9
This is needed, because LND and LiT use 1.24.9.
2025-11-17 14:11:26 -03:00
Boris Nagaev
508d90f384
multi: update Go to 1.24.10 2025-11-16 00:26:02 -03:00
Boris Nagaev
69c38acd25
release.sh: fix for the case of multiple tags
./release.sh v0.31.5-beta fails as of tag v0.31.5-beta:
tag v0.31.5-beta not checked out

This is because it checks the Git tag with `git describe`, but the current
commit has multiple tags and `git describe` returns swapserverrpc/v1.0.18
instead of expected v0.31.5-beta.

In this commit this edge case is addressed.
2025-11-04 12:38:31 -03:00
sputn1ck
e4f64ec9cc
Revert "Merge pull request #1028 from starius/downgrade-deps"
This reverts commit b11c959bc8, reversing
changes made to 0a182ee308.
2025-10-31 18:48:26 +01:00
Boris Nagaev
7d58b65a84
go.mod: downgrade deps for litd release
lnd v0.19.3-beta
tapd v0.6.1
go 1.23.12 (except in tools/ where golangci-lint needs Go 1.24)

Remove docs generators as cli-docs depends on Go 1.24.
2025-10-31 10:23:52 -03:00
Boris Nagaev
aec03c1e0b
release.sh: set -buildid to ''
If Go binary itself comes from `go install golang.org/dl/go1.24.6@latest` it
embeds a different BuildID. We unset BuildID to enforce reproducibility.
2025-09-30 14:15:47 -03:00
Boris Nagaev
25c5618684
release.sh: fix green and red messages on Mac 2025-09-30 12:02:12 -03:00
Boris Nagaev
260b90d1af
release.sh: check Go version, provide GO_CMD var 2025-09-30 11:37:46 -03:00
Boris Nagaev
6d8872f995
release.sh: reproducible gzip on Mac
Make sure we use GNU gzip. Mac by default uses BSD gzip.
2025-09-29 22:24:10 -03:00
Boris Nagaev
a34b46c760
release.sh: remove the clonned dir with -rf
Otherwise it asks confirmation to remove tmp-.../.git dir.
2025-09-29 12:10:31 -03:00
Boris Nagaev
2464e942ec
release.sh: use git describe --abbrev=10
Without --abbrev flag it may produce different number of hash characters
on different instances. It depends on the state of Git repo itself.
2025-09-29 11:27:25 -03:00
Boris Nagaev
2f3edb913b
release.sh: print sha256 hash of manifest file 2025-09-29 11:24:08 -03:00
Boris Nagaev
ec53b0d2d4
release.sh: make the list of tags reproducible
When doing git-clone to a subdir, do not keep tags, since there can be local
tags affecting `git describe` and buildvcs info. Instead pull the tags from
upstream.
2025-09-29 11:24:08 -03:00
Boris Nagaev
a889fbecb3
release.sh: collect artifacts in intermediate dir
Collect artifacts in "tmp-..." instead of final place. If build fails in the
middle, we don't want to leave the artifacts directory with partial result.

Also remove the build directory (with Git clone) in the end.
2025-09-29 11:24:08 -03:00
Boris Nagaev
9c138039d2
release.sh: build Go in reproducible way
Added -trimpath to remove absolute paths from the binary.
2025-09-29 11:24:08 -03:00
Boris Nagaev
9e8cde5556
release.sh: make reproducible .zip and .tar.gz
Took the code for reproducible packing from LND.
2025-09-29 11:24:08 -03:00
Boris Nagaev
0e30dc92c2
release.sh: git clone before building
Create a temporary directory inside loop/ directory and make a clone of Git repo
to that dir. This ensures that the version built is exactly what is committed
without any unstaged files and not dirty.
2025-09-29 11:24:08 -03:00
Boris Nagaev
3150aa5641
release.sh: fix building untagged commits
To test "make docker-release" it is convenient to pass a regular commit to it
(an output of `git describe`). In this commit release.sh is changed to detect
such "tags" and skip tag signature verification for it.

Also if release.sh is used without an argument, a unique directory name is
generated from the current time.
2025-09-29 11:24:08 -03:00
Boris Nagaev
b0051382cf
make: set CGO_ENABLED=0
Make loop and loopd binaries static, more portable.
2025-07-24 00:55:10 -03:00
Boris Nagaev
7a4dbb751e
release.sh: fix version matching
A commit_hash component was added to the version string:
"loop version 0.31.2-beta commit=v0.31.2-beta-dirty commit_hash=xxx".
As .* is greedy, it captured "0.31.2-beta commit=v0.31.2-beta-dirty"
instead of just "0.31.2-beta".

This commit fixes this.
2025-06-17 19:44:57 -03:00
pinglanlu
1fddf94f8e chore: remove redundant word in release.sh
Signed-off-by: pinglanlu <pinglanlu@outlook.com>
2024-11-11 18:44:01 +08:00
dstadulis
92b19175a0
build: add darwin-arm64 (Apple Silicon) as a release target
add darwin-arm64 (Apple Silicon) as a release target
2023-09-28 19:09:57 +00:00
Andras Banki-Horvath
46a7744656
build: remove unsupported platforms from the release script 2023-07-04 17:27:02 +02:00
Andras Banki-Horvath
763652fe9a
build: deprecate windows 386 from the release
The modernc.org/sqlite package does not build on windows 386 so we're
removing it from our release script.
2023-07-03 16:27:19 +02:00
Alex Bosworth
986bea3f96
release: remove support for darwin 386
Go 1.15 removes support for darwin 386, so it should be removed from the release build target
2020-08-30 14:24:09 -07:00
Joost Jager
6ac3d39d19
release: add tag and version verification to release script 2020-05-14 11:33:39 +02:00
Olaoluwa Osuntokun
d4e98ee67b
release: add release script 2019-03-07 21:49:59 -08:00