From 9ada2dbb174e4f907e314dac5b7be90ecbfb5b70 Mon Sep 17 00:00:00 2001 From: Ian Sinnott Date: Sun, 20 Aug 2023 23:15:04 +0800 Subject: [PATCH] wip --- .github/workflows/go-build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go-build.yml b/.github/workflows/go-build.yml index 1fa7df6..5e29e09 100644 --- a/.github/workflows/go-build.yml +++ b/.github/workflows/go-build.yml @@ -8,12 +8,13 @@ on: jobs: build: name: Build - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest # Matrix strategy strategy: matrix: - os: [ubuntu-latest, macos-latest] + GOOS: [linux, darwin] + GOARCH: [amd64, arm64] steps: - name: Set up Go 1.x @@ -41,7 +42,6 @@ jobs: run: echo ::set-output name=VERSION::$(echo $(git describe --tags --always)) - name: Create Release - if: ${{ matrix.os == 'ubuntu-latest' }} id: create_release uses: actions/create-release@v1 env: @@ -59,6 +59,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: 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 - asset_path: ./dist/browser-gopher-${{ steps.get_version.outputs.VERSION }}/browser-gopher - asset_name: browser-gopher-${{ steps.get_version.outputs.VERSION }}-${{ matrix.os }} + asset_path: ./dist/browser-gopher-${{ steps.get_version.outputs.VERSION }}/browser-gopher-linux-amd64 + asset_name: browser-gopher-${{ steps.get_version.outputs.VERSION }}-linux-amd64 asset_content_type: application/octet-stream