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
|
x: false
|
||||||
race: false
|
race: false
|
||||||
ldflags: >
|
ldflags: >
|
||||||
-s -w
|
-s -w \
|
||||||
-X 'github.com/debridmediamanager/zurg/internal.BuiltAt=$(date +%Y-%m-%dT%H:%M:%S)'
|
-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.GoVersion=$(go version | cut -d ' ' -f 3)" \
|
||||||
-X 'github.com/debridmediamanager/zurg/internal.GitCommit=$(git rev-parse HEAD)'
|
-X "github.com/debridmediamanager/zurg/internal.GitCommit=$(git rev-parse HEAD)" \
|
||||||
-X 'github.com/debridmediamanager/zurg/internal.Version=${{ steps.version.outputs.version }}'
|
-X "github.com/debridmediamanager/zurg/internal.Version=${{ steps.version.outputs.version }}"
|
||||||
buildmode: default
|
buildmode: default
|
||||||
trimpath: true
|
trimpath: true
|
||||||
|
|
||||||
@@ -57,7 +57,8 @@ jobs:
|
|||||||
platform=$(echo $platform | sed 's/.exe//g')
|
platform=$(echo $platform | sed 's/.exe//g')
|
||||||
extension=".exe"
|
extension=".exe"
|
||||||
fi
|
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
|
done
|
||||||
|
|
||||||
- name: Upload artifacts to workflow
|
- name: Upload artifacts to workflow
|
||||||
|
|||||||
Reference in New Issue
Block a user