Do not specify target platforms
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -41,8 +41,7 @@ jobs:
|
||||
pkg: cmd/zurg
|
||||
dest: artifacts
|
||||
prefix: zurg
|
||||
targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64
|
||||
v: true
|
||||
v: false
|
||||
x: false
|
||||
race: false
|
||||
ldflags: >
|
||||
@@ -57,14 +56,18 @@ jobs:
|
||||
- name: Compress artifacts
|
||||
run: |
|
||||
mkdir -p compressed_artifacts
|
||||
for platform in windows-amd64.exe linux-amd64 linux-arm64 darwin-arm64; do
|
||||
# check if windows
|
||||
for file in artifacts/*; do
|
||||
# Extract platform from the filename
|
||||
platform=$(basename $file | sed 's/zurg-//; s/.exe//')
|
||||
|
||||
# Determine if it's a Windows executable
|
||||
extension=""
|
||||
if [[ $platform == *".exe" ]]; then
|
||||
platform=$(echo $platform | sed 's/.exe//g')
|
||||
if [[ $file == *".exe" ]]; then
|
||||
extension=".exe"
|
||||
fi
|
||||
cp -fR artifacts/zurg-$platform$extension artifacts/zurg$extension
|
||||
|
||||
# Copy and zip the file
|
||||
cp -fR "$file" "artifacts/zurg$extension"
|
||||
(cd artifacts && zip -r "../compressed_artifacts/zurg-${{ steps.version.outputs.version }}-$platform.zip" "zurg$extension")
|
||||
done
|
||||
|
||||
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -32,3 +32,8 @@ config.yml
|
||||
error_videos/*.mp4
|
||||
|
||||
mnt/
|
||||
|
||||
error_codes.json
|
||||
memlog.sh
|
||||
stressTestAddRemove.py
|
||||
*.zip
|
||||
|
||||
Reference in New Issue
Block a user