Skip to content

Commit

Permalink
try matrix strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
nwillc committed Nov 18, 2020
1 parent f9d264d commit e219ce4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/RELEASE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ jobs:
matrix:
target: [{ 'os': 'darwin', 'target': 'amd64'}, { 'os': 'linux', 'target': 'amd64'}, { 'os': 'linux', 'target': '386'}]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.15.3'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.15.3'

- name: Install dependencies
run: go version
- name: Install dependencies
run: go version

- name: Create asset
run: |
GOOS=${{ matrix.target.os }} GOARCH=${{ matrix.target.arch }} go build -o syncher
zip -j -r syncher_${{ matrix.target.os }}_${{ matrix.target.os }}.zip syncher
- name: Create asset
run: |
GOOS=${{ matrix.target.os }} GOARCH=${{ matrix.target.arch }} go build -o syncher
zip -j -r syncher_${{ matrix.target.os }}_${{ matrix.target.os }}.zip syncher
release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit e219ce4

Please sign in to comment.