Skip to content

Commit

Permalink
feat: add exe for Windows binary
Browse files Browse the repository at this point in the history
  • Loading branch information
shfc committed Aug 3, 2024
1 parent d92c248 commit 3fc8d74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ jobs:
matrix:
os: [ linux, windows, darwin ]
arch: [ amd64, arm64, 386 ]
include:
- os: windows
file-extension: ".exe"
exclude:
- os: darwin
arch: 386
runs-on: ubuntu-latest
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
FILEEXTENSION: ${{ matrix.file-extension }}
steps:
- name: Checkout Git repo
uses: actions/checkout@v4
Expand All @@ -41,7 +45,7 @@ jobs:
- name: Build binary
run: |
GOOS=${GOOS} GOARCH=${GOARCH} go build -o ./Releases/m3u8-${GOOS}-${GOARCH} m3u8-downloader.go
GOOS=${GOOS} GOARCH=${GOARCH} go build -o ./Releases/m3u8-${GOOS}-${GOARCH}${FILEEXTENSION} m3u8-downloader.go
- name: Release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 3fc8d74

Please sign in to comment.