Skip to content

Commit

Permalink
Make workflow work on mutliple OS's
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWright committed Mar 16, 2020
1 parent 1431832 commit fb9bec7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@ on:
name: Build
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.13.x]
platform: [ubuntu-latest, windows-latest, macos-latest]
os:
- ubuntu-latest
- windows-latest
- macos-latest
include:
- os: ubuntu-latest
artifact_name: sudoku
asset_name: sudoku_linux_amd64
- os: windows-latest
artifact_name: sudoku.exe
asset_name: sudoku_windows_amd64
asset_name: sudoku_windows_amd64.exe
- os: macos-latest
artifact_name: sudoku
asset_name: sudoku_macos_amd64

name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2-beta
Expand Down

0 comments on commit fb9bec7

Please sign in to comment.