Skip to content

Commit

Permalink
.github/workflows: add Windows job
Browse files Browse the repository at this point in the history
Updates #48
  • Loading branch information
zombiezen committed Sep 7, 2020
1 parent 76fa96f commit c53185d
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ on:
release:
types: [published]
jobs:
release:
name: Release
unix:
name: Unix
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -50,3 +50,37 @@ jobs:
asset_path: ./${{ steps.package.outputs.file }}
asset_name: ${{ steps.package.outputs.file }}
asset_content_type: application/gzip
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14
- name: Check out code
uses: actions/checkout@v1
- name: Download dependencies
run: go mod download
env:
GO111MODULE: on
- name: Build executable
run: |-
release\build.ps1 `
-version ($Env:GITHUB_REF).trimstart('refs/tags/') `
-out release\msi\gg.exe
env:
GO111MODULE: on
- name: Package release
run: .\release.ps1
working-directory: .\release\msi
id: package
- name: Upload binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: .\release\msi\${{ steps.package.outputs.file }}
asset_name: ${{ steps.package.outputs.file }}
asset_content_type: application/gzip

0 comments on commit c53185d

Please sign in to comment.