Skip to content

Commit

Permalink
generate-ldflags depends on go version
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycub committed May 3, 2024
1 parent 514ac2e commit 9f243f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ jobs:
path: ${{ steps.generate-metadata-file.outputs.filepath }}

generate-ldflags:
needs: get-product-version
needs:
- get-go-version
- get-product-version
runs-on: ubuntu-20.04
outputs:
ldflags: ${{ steps.generate-ldflags.outputs.ldflags }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
- name: Generate ld flags
id: generate-ldflags
run: |
Expand Down

0 comments on commit 9f243f7

Please sign in to comment.