refactor GH workflow for more parallelism

This commit is contained in:
neilotoole 2022-12-25 00:08:04 -07:00
parent 56846b40c4
commit 51bc3ef677

View File

@ -58,7 +58,6 @@ jobs:
build-binaries-darwin:
needs: go-test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: macos-12
@ -90,7 +89,6 @@ jobs:
path: dist-darwin
build-binaries-linux-amd64:
needs: go-test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-22.04
@ -122,7 +120,6 @@ jobs:
path: dist-linux
build-binaries-linux-arm64:
needs: go-test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-22.04
@ -160,7 +157,6 @@ jobs:
build-binaries-windows:
needs: go-test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: windows-2022
@ -193,10 +189,15 @@ jobs:
path: dist-windows
publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: [ go-lint, build-binaries-darwin, build-binaries-linux-amd64, build-binaries-linux-arm64, build-binaries-windows ]
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs:
- go-lint
- go-test
- build-binaries-darwin
- build-binaries-linux-amd64
- build-binaries-linux-arm64
- build-binaries-windows
steps:
- name: Checkout
uses: actions/checkout@v3