Skip to content

Commit

Permalink
ci: Add OS and arch to build artifact names
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 11, 2024
1 parent 1e77f13 commit 00e0909
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,20 @@ jobs:
- name: Build
run: ./hack/build-windows.sh
- name: Compress
run: cd dist && zip -r ../gones.zip .
- name: Upload Artifact
run: |
cd dist
zip -r ../gones_windows_amd64.zip GoNES-amd64.exe
zip -r ../gones_windows_arm64.zip GoNES-arm64.exe
- name: Upload Artifact (amd64)
uses: actions/upload-artifact@v4
with:
name: gones_windows_amd64
path: gones_windows_amd64.zip
- name: Upload Artifact (arm64)
uses: actions/upload-artifact@v4
with:
name: windows
path: gones.zip
name: gones_windows_arm64
path: gones_windows_arm64.zip

build-darwin:
name: Build (darwin)
Expand All @@ -96,12 +104,12 @@ jobs:
- name: Build
run: ./hack/build-darwin.sh
- name: Compress
run: tar -cvf gones.tar -C dist .
run: tar -cvf gones_darwin.tar.gz -C dist .
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: darwin
path: gones.tar
name: gones_darwin
path: gones_darwin.tar.gz

build-linux-amd64:
name: Build (linux-amd64)
Expand All @@ -124,12 +132,12 @@ jobs:
CGO_ENABLED: "1"
run: go build -ldflags='-w -s' -trimpath -tags gzip -o dist/gones
- name: Compress
run: tar -cvf gones.tar -C dist .
run: tar -cvf gones_linux_amd64.tar.gz -C dist .
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: linux-amd64
path: gones.tar
name: gones_linux_amd64
path: gones_linux_amd64.tar.gz

build-linux-arm64:
name: Build (linux-arm64)
Expand Down Expand Up @@ -167,12 +175,12 @@ jobs:
builder \
go build -ldflags='-w -s' -trimpath -tags gzip -o dist/gones
- name: Compress
run: tar -cvf gones.tar -C dist .
run: tar -cvf gones_linux_arm64.tar.gz -C dist .
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: linux-arm64
path: gones.tar
name: gones_linux_arm64
path: gones_linux_arm64.tar.gz

build-web:
name: Build Web
Expand Down

0 comments on commit 00e0909

Please sign in to comment.