From 6dfd29ab5b7a11c3b2bda31be7809552f1c9e54b Mon Sep 17 00:00:00 2001 From: nocodeleaks Date: Fri, 7 Jun 2024 18:18:13 -0300 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 43cde28..a4b5604 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -31,6 +31,9 @@ jobs: runs-on: ${{ matrix.runner }} steps: + env: + BINARYNAME: ${{github.repository}}-${{matrix.go-os}}-${{matrix.go-arch}}${{matrix.suffix}} + - uses: actions/checkout@v4 - name: Set up Go ${{env.GOVERSION}} @@ -38,9 +41,6 @@ jobs: with: go-version: ${{env.GOVERSION}} - env: - BINARYNAME: ${{github.repository}}-${{matrix.go-os}}-${{matrix.go-arch}}${{matrix.suffix}} - - name: Build working-directory: ./src run: ${{ matrix.build-env }} GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go build -o "${{env.BINARYNAME}}" -tags="${{ matrix.build-tags }}" -v ./...