6060 run : |
6161 echo "version=$(git describe --tags)" >> $GITHUB_OUTPUT
6262
63- build-linux-and-windows :
64- name : Build Linux and Windows Binaries
63+ build-linux :
64+ name : Build Linux Binaries
6565 runs-on : ubuntu-latest
6666 needs : calculate-version
6767 permissions :
9999 CGO_ENABLED : 0
100100 PRODUCT_VERSION : ${{ needs.calculate-version.outputs.version }}
101101
102+ - name : tarball Linux binaries
103+ run : |
104+ tar -czf linux-azqr.tar.gz bin/linux_*
105+
106+ - name : Upload Linux artifacts
107+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
108+ with :
109+ name : linux-binaries
110+ path : linux-azqr.tar.gz
111+
112+ build-windows :
113+ name : Build Windows Binaries
114+ runs-on : windows-latest
115+ needs : calculate-version
116+ permissions :
117+ contents : write
118+ packages : write
119+ steps :
120+ - name : Check out code into the Go module directory
121+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
122+ with :
123+ fetch-depth : 0
124+ submodules : " recursive"
125+
126+ - name : Set up Go
127+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
128+ with :
129+ go-version-file : " go.mod"
130+ cache : true
131+
102132 - name : Build Windows AMD64
103133 run : make
104134 env :
@@ -115,20 +145,10 @@ jobs:
115145 CGO_ENABLED : 1
116146 PRODUCT_VERSION : ${{ needs.calculate-version.outputs.version }}
117147
118- - name : tarball Linux binaries
119- run : |
120- tar -czf linux-azqr.tar.gz bin/linux_*
121-
122148 - name : tarball windows binaries
123149 run : |
124150 tar -czf windows-azqr.tar.gz bin/windows_*
125151
126- - name : Upload Linux artifacts
127- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
128- with :
129- name : linux-binaries
130- path : linux-azqr.tar.gz
131-
132152 - name : Upload Windows artifacts
133153 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
134154 with :
@@ -183,7 +203,7 @@ jobs:
183203
184204 release :
185205 name : Create Release
186- needs : [calculate-version, build-linux-and -windows, build-macos]
206+ needs : [calculate-version, build-linux, build -windows, build-macos]
187207 if : github.event_name != 'pull_request' && startswith(github.ref, 'refs/tags/v')
188208 runs-on : ubuntu-latest
189209 permissions :
0 commit comments