Fix passing ldflags
This commit is contained in:
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@@ -39,11 +39,11 @@ jobs:
|
||||
x: false
|
||||
race: false
|
||||
ldflags: >
|
||||
-s -w
|
||||
-X 'github.com/debridmediamanager/zurg/internal.BuiltAt=$(date +%Y-%m-%dT%H:%M:%S)'
|
||||
-X 'github.com/debridmediamanager/zurg/internal.GoVersion=$(go version | cut -d ' ' -f 3)'
|
||||
-X 'github.com/debridmediamanager/zurg/internal.GitCommit=$(git rev-parse HEAD)'
|
||||
-X 'github.com/debridmediamanager/zurg/internal.Version=${{ steps.version.outputs.version }}'
|
||||
-s -w \
|
||||
-X 'github.com/debridmediamanager/zurg/internal.BuiltAt=$(date +%Y-%m-%dT%H:%M:%S)' \
|
||||
-X "github.com/debridmediamanager/zurg/internal.GoVersion=$(go version | cut -d ' ' -f 3)" \
|
||||
-X "github.com/debridmediamanager/zurg/internal.GitCommit=$(git rev-parse HEAD)" \
|
||||
-X "github.com/debridmediamanager/zurg/internal.Version=${{ steps.version.outputs.version }}"
|
||||
buildmode: default
|
||||
trimpath: true
|
||||
|
||||
@@ -57,7 +57,8 @@ jobs:
|
||||
platform=$(echo $platform | sed 's/.exe//g')
|
||||
extension=".exe"
|
||||
fi
|
||||
(cd artifacts && zip -r "../compressed_artifacts/zurg-${{ steps.version.outputs.version }}-$platform.zip" "zurg-$platform$extension")
|
||||
cp -fR artifacts/zurg-$platform$extension artifacts/zurg$extension
|
||||
(cd artifacts && zip -r "../compressed_artifacts/zurg-${{ steps.version.outputs.version }}-$platform.zip" "zurg$extension")
|
||||
done
|
||||
|
||||
- name: Upload artifacts to workflow
|
||||
|
||||
Reference in New Issue
Block a user