Skip to content

Commit 9ada2db

Browse files
committed
wip
1 parent 974c084 commit 9ada2db

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/go-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88
jobs:
99
build:
1010
name: Build
11-
runs-on: ${{ matrix.os }}
11+
runs-on: ubuntu-latest
1212

1313
# Matrix strategy
1414
strategy:
1515
matrix:
16-
os: [ubuntu-latest, macos-latest]
16+
GOOS: [linux, darwin]
17+
GOARCH: [amd64, arm64]
1718

1819
steps:
1920
- name: Set up Go 1.x
@@ -41,7 +42,6 @@ jobs:
4142
run: echo ::set-output name=VERSION::$(echo $(git describe --tags --always))
4243

4344
- name: Create Release
44-
if: ${{ matrix.os == 'ubuntu-latest' }}
4545
id: create_release
4646
uses: actions/create-release@v1
4747
env:
@@ -59,6 +59,6 @@ jobs:
5959
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6060
with:
6161
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
62-
asset_path: ./dist/browser-gopher-${{ steps.get_version.outputs.VERSION }}/browser-gopher
63-
asset_name: browser-gopher-${{ steps.get_version.outputs.VERSION }}-${{ matrix.os }}
62+
asset_path: ./dist/browser-gopher-${{ steps.get_version.outputs.VERSION }}/browser-gopher-linux-amd64
63+
asset_name: browser-gopher-${{ steps.get_version.outputs.VERSION }}-linux-amd64
6464
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)