Skip to content

Commit

Permalink
simplify zip folder structure for workflow & test windows releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipnah committed Aug 13, 2024
1 parent cb6d118 commit ac78574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
os: [darwin, linux]
os: [darwin, windows, linux]
arch: [arm64, amd64]
steps:
- uses: actions/checkout@v4
Expand All @@ -25,10 +25,10 @@ jobs:
go-version: "1.22"

- name: Build
run: env GOOS=${{matrix.os}} GOARCH=${{matrix.arch}} go build -o ./bin/${{matrix.os}}/${{matrix.arch}}/ego main.go
run: env GOOS=${{matrix.os}} GOARCH=${{matrix.arch}} go build -o ego main.go

- name: Zip release
run: 7z a -tzip "ego${{matrix.os}}${{matrix.arch}}.zip" "./bin/"
run: 7z a -tzip "ego-${{matrix.os}}-${{matrix.arch}}.zip" "ego"

- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit ac78574

Please sign in to comment.