Skip to content

Commit

Permalink
enable windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergodart committed Oct 23, 2024
1 parent c40a37f commit fcbc5e9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ jobs:
run: go build -o bin/signls && chmod +x bin/signls
if: ${{ !startsWith(matrix.os, 'windows') }}

# Disable windows for now has I have no way of testing it.
# - name: Build windows
# run: go build -ldflags "-linkmode 'external' -extldflags '-static'" -o bin/signls.exe
# if: startsWith(matrix.os, 'windows')
- name: Build windows
run: go build -ldflags "-linkmode 'external' -extldflags '-static'" -o bin/signls.exe
if: startsWith(matrix.os, 'windows')

- name: Tar.gz files
run: tar -zcvf signls_${{ github.ref_name }}_${{ runner.os}}.tar.gz LICENSE -C bin signls
Expand All @@ -72,6 +71,10 @@ jobs:
with:
name: signls_${{ github.sha }}_Linux

- uses: actions/[email protected]
with:
name: signls_${{ github.sha }}_Windows

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

0 comments on commit fcbc5e9

Please sign in to comment.