Skip to content

Commit

Permalink
will windows build work?
Browse files Browse the repository at this point in the history
  • Loading branch information
phendryx committed Dec 27, 2022
1 parent f5e0f14 commit c77b1eb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,8 @@ on:
types: [created]

jobs:
build-linux:
name: Build Linux Client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.16
- name: Build
run: make build-linux
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: update-linux-amd64.gz
# build-windows:
# name: Build Windows Client
# build-linux:
# name: Build Linux Client
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
Expand All @@ -30,12 +15,27 @@ jobs:
# with:
# go-version: 1.16
# - name: Build
# run: make build-windows
# - uses: shogo82148/actions-upload-release-asset@v1
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: update-windows-amd64.exe.gz
# run: make build-linux
# - uses: shogo82148/actions-upload-release-asset@v1
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: albiondata-client-amd64-installer.exe
# asset_path: update-linux-amd64.gz
build-windows:
name: Build Windows Client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.16
- name: Build
run: make build-windows
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: update-windows-amd64.exe.gz
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: albiondata-client-amd64-installer.exe
2 changes: 1 addition & 1 deletion scripts/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

sudo apt update && sudo apt install -y nsis nsis-pluginapi
sudo apt update && sudo apt install -y nsis nsis-pluginapi wine

export CGO_CPPFLAGS="-I $GOPATH/src/github.com/broderickhyman/albiondata-client/thirdparty/WpdPack/Include/"
export CGO_LDFLAGS="-L $GOPATH/src/github.com/broderickhyman/albiondata-client/thirdparty/WpdPack/Lib/x64/"
Expand Down

0 comments on commit c77b1eb

Please sign in to comment.