修复编译时go版本不正确的bug

This commit is contained in:
juewuy 2024-02-08 11:41:25 +08:00
parent 43f0bffef6
commit 38af29536b
2 changed files with 8 additions and 4 deletions

View File

@ -100,7 +100,9 @@ jobs:
fail-fast: false fail-fast: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: meta needs:
- go
- meta
env: env:
GOOS: ${{ matrix.goos }} GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }} GOARCH: ${{ matrix.goarch }}
@ -121,7 +123,7 @@ jobs:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: ${{ steps.go.outputs.version }} go-version: ${{needs.go.outputs.version}}
- name: Set ENV - name: Set ENV
run: | run: |

View File

@ -110,7 +110,9 @@ jobs:
fail-fast: false fail-fast: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: sing-box needs:
- go
- sing-box
env: env:
GOOS: ${{ matrix.goos }} GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }} GOARCH: ${{ matrix.goarch }}
@ -132,7 +134,7 @@ jobs:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: ${{ steps.go.outputs.version }} go-version: ${{needs.go.outputs.version}}
- name: checkout sing repository - name: checkout sing repository
if: ${{ env.REPO == 'PuerNya/sing-box' }} if: ${{ env.REPO == 'PuerNya/sing-box' }}