From bf8e37c6df3b93676e71a69c56be09a1bb7e677a Mon Sep 17 00:00:00 2001 From: nadoo <287492+nadoo@users.noreply.github.com> Date: Sat, 6 Feb 2021 00:44:03 +0800 Subject: [PATCH] ci: fix issue in github action --- .github/workflows/build.yml | 14 ++++++++++++-- .github/workflows/release.yml | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cfb390..2625a06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,13 +6,18 @@ jobs: test: name: Test runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ 'tip', '1.16.0-rc1' ] + steps: - name: Checkout uses: actions/checkout@v2 - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16.0-rc1 + stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")' + go-version: ${{ matrix.go-version }} - name: Go Env run: go env - name: Test @@ -22,13 +27,18 @@ jobs: name: Build runs-on: ubuntu-latest needs: [test] + strategy: + matrix: + go-version: [ 'tip', '1.16.0-rc1' ] + steps: - name: Checkout uses: actions/checkout@v2 - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16.0-rc1 + stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")' + go-version: ${{ matrix.go-version }} - name: Go Env run: go env - name: Build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d52c240..039a9a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16.0-rc1 + go-version: 1.16.x - name: Go Env run: go env - name: Run GoReleaser