Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/release-opensuse156.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release opensuse 15.6 amd64 and arm64

on:
push:
push:
tags:
- 'v*.*.*'

Expand Down Expand Up @@ -59,13 +59,15 @@ jobs:
GOFLAGS: "-buildvcs=false"
GO_LDFLAGS: "-linkmode external"
CGO_LDFLAGS: "-g -O2"
VERSION_LDFLAGS: "-X parallax/common.Version=${{ github.ref_name }} \
-X parallax/common.Commit=${{ github.sha }} \
-X parallax/common.BuildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
run: |
mkdir -p dist
BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"

go build -v -x \
-ldflags "$GO_LDFLAGS $VERSION_LDFLAGS" \
-ldflags "$GO_LDFLAGS \
-X=parallax/common.Version=${{ github.ref_name }} \
-X=parallax/common.Commit=${{ github.sha }} \
-X=parallax/common.BuildDate=${BUILD_DATE}" \
-o dist/parallax-${{ github.ref_name }}-opensuse-15.6-${{ matrix.arch }} \
.

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ jobs:
GOFLAGS: "-buildvcs=false"
GO_LDFLAGS: "-linkmode external"
CGO_LDFLAGS: "-g -O2"
VERSION_LDFLAGS: "-X parallax/common.Version=${{ github.ref_name }} \
-X parallax/common.Commit=${{ github.sha }} \
-X parallax/common.BuildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
run: |
mkdir -p dist
BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"

go build -v -x \
-ldflags "$GO_LDFLAGS $VERSION_LDFLAGS" \
-ldflags "$GO_LDFLAGS \
-X=parallax/common.Version=${{ github.ref_name }} \
-X=parallax/common.Commit=${{ github.sha }} \
-X=parallax/common.BuildDate=${BUILD_DATE}" \
-o dist/parallax-${{ github.ref_name }}-opensuse-15.5-${{ matrix.arch }} \
.

Expand Down