Skip to content

Commit

Permalink
Building Windows binary
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdarkdragon committed Dec 10, 2019
1 parent 0feb417 commit 41513b7
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,32 @@ jobs:
- name: Build
run: |
go build -v cmd/streamtester/streamtester.go
- name: Compress Posix
if: matrix.os != 'windows-latest'
run: |
gzip -9 -S .${{runner.os}}.gz streamtester
- name: Compress Windows
if: matrix.os == 'windows-latest'
run: |
7z a streamtester.${{runner.os}}.zip streamtester
- name: Release
- name: Release Posix
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
if: matrix.os != 'windows-latest'
with:
files: streamtester.${{runner.os}}.gz
# body_path: ${{ github.workflow }}-CHANGELOG.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release Windows
uses: softprops/action-gh-release@v1
if: matrix.os == 'windows-latest'
with:
files: streamtester.${{runner.os}}.zip
# body_path: ${{ github.workflow }}-CHANGELOG.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 41513b7

Please sign in to comment.