diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a808a8..64494ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,7 @@ jobs: with: upload_url: ${{ github.event.release.upload_url }} asset_path: update-linux-amd64.gz + build-windows: name: Build Windows Client runs-on: ubuntu-latest @@ -29,16 +30,43 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.16 - - name: Build + + - name: install nsis + run: sudo apt-get update; sudo apt-get -y install nsis + + - name: Make run: make build-windows + + - uses: actions/upload-artifact@v3 + if: ${{ env.ACT }} + with: + name: files + path: albiondata-client.exe + + - uses: actions/upload-artifact@v3 + if: ${{ env.ACT }} + with: + name: files + path: update-windows-amd64.exe.gz + + - uses: actions/upload-artifact@v3 + if: ${{ env.ACT }} + with: + name: files + path: albiondata-client-amd64-installer.exe + - uses: shogo82148/actions-upload-release-asset@v1 + if: ${{ !env.ACT }} with: upload_url: ${{ github.event.release.upload_url }} asset_path: update-windows-amd64.exe.gz + - uses: shogo82148/actions-upload-release-asset@v1 + if: ${{ !env.ACT }} with: upload_url: ${{ github.event.release.upload_url }} asset_path: albiondata-client-amd64-installer.exe + build-darwin: name: Build MacOS Client runs-on: macos-13