From c806ea987201c17766dcbaa37d247662cf9622e9 Mon Sep 17 00:00:00 2001 From: ChienNM3 Date: Mon, 29 Jan 2024 16:45:11 +0700 Subject: [PATCH] Build windows --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69d19e3..c4a8bcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -30,6 +32,7 @@ jobs: - run: go version shell: bash + ## MacOS # Build MacOS - name: Build MacOS if: runner.os == 'macOS' @@ -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: