File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 11name : Release opensuse 15.6 amd64 and arm64
22
33on :
4- push :
4+ push :
55 tags :
66 - ' v*.*.*'
77
@@ -59,13 +59,15 @@ jobs:
5959 GOFLAGS : " -buildvcs=false"
6060 GO_LDFLAGS : " -linkmode external"
6161 CGO_LDFLAGS : " -g -O2"
62- VERSION_LDFLAGS : " -X parallax/common.Version=${{ github.ref_name }} \
63- -X parallax/common.Commit=${{ github.sha }} \
64- -X parallax/common.BuildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
6562 run : |
6663 mkdir -p dist
64+ BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
65+
6766 go build -v -x \
68- -ldflags "$GO_LDFLAGS $VERSION_LDFLAGS" \
67+ -ldflags "$GO_LDFLAGS \
68+ -X=parallax/common.Version=${{ github.ref_name }} \
69+ -X=parallax/common.Commit=${{ github.sha }} \
70+ -X=parallax/common.BuildDate=${BUILD_DATE}" \
6971 -o dist/parallax-${{ github.ref_name }}-opensuse-15.6-${{ matrix.arch }} \
7072 .
7173
Original file line number Diff line number Diff line change @@ -59,13 +59,15 @@ jobs:
5959 GOFLAGS : " -buildvcs=false"
6060 GO_LDFLAGS : " -linkmode external"
6161 CGO_LDFLAGS : " -g -O2"
62- VERSION_LDFLAGS : " -X parallax/common.Version=${{ github.ref_name }} \
63- -X parallax/common.Commit=${{ github.sha }} \
64- -X parallax/common.BuildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
6562 run : |
6663 mkdir -p dist
64+ BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
65+
6766 go build -v -x \
68- -ldflags "$GO_LDFLAGS $VERSION_LDFLAGS" \
67+ -ldflags "$GO_LDFLAGS \
68+ -X=parallax/common.Version=${{ github.ref_name }} \
69+ -X=parallax/common.Commit=${{ github.sha }} \
70+ -X=parallax/common.BuildDate=${BUILD_DATE}" \
6971 -o dist/parallax-${{ github.ref_name }}-opensuse-15.5-${{ matrix.arch }} \
7072 .
7173
You can’t perform that action at this time.
0 commit comments