Skip to content

Commit

Permalink
Build windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ChienNM3 committed Jan 29, 2024
1 parent 8467bd0 commit c806ea9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
fail-fast: true
matrix:
build:
- { name: 'TorPlayer-darwin', os: 'macos-latest' }
# - { name: 'TorPlayer-darwin', os: 'macos-latest' }
# - { name: 'TorPlayer-linux', os: 'ubuntu-latest' }
- { name: 'TorPlayer-windows', os: 'windows-latest' }

runs-on: ${{ matrix.build.os }}
steps:
Expand All @@ -30,6 +32,7 @@ jobs:
- run: go version
shell: bash

## MacOS
# Build MacOS
- name: Build MacOS
if: runner.os == 'macOS'
Expand All @@ -49,6 +52,14 @@ jobs:
productbuild --component ./build/bin/TorPlayer.app ./build/bin/TorPlayer.pkg
shell: bash

## Windows
# Build Windows
- name: Build Windows
if: runner.os == 'Windows'
run: |
go build -ldflags -H=windowsgui -o build/bin/TorPlayer.exe
shell: bash

# Upload build assets
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit c806ea9

Please sign in to comment.