File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -130,21 +130,28 @@ jobs:
130
130
uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
131
131
with :
132
132
go-version-file : .go-version
133
- - name : Build
133
+ - name : Build binary
134
+ id : build-binary
134
135
env :
135
136
GOOS : " linux"
136
137
GOARCH : ${{ matrix.arch }}
137
138
VERSION : ${{ needs.get-product-version.outputs.product-version }}
138
139
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
140
+ shell : bash
139
141
run : |
140
- mkdir dist out
141
- make ci-build
142
- zip -r -j out/${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_linux_${{ matrix.arch }}.zip dist/${{ env.GOOS }}/${{ env.GOARCH }}/${{ env.PKG_NAME }}
143
- - name : Upload binaries
142
+ BUILD_DIR=dist
143
+ make ci-build BUILD_DIR="${BUILD_DIR}"
144
+ OUT_DIR="${BUILD_DIR}/out"
145
+ mkdir -p "${OUT_DIR}"
146
+ ZIP_FILE="${OUT_DIR}/${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_linux_${{ matrix.arch }}.zip"
147
+ zip -r -j "${ZIP_FILE}" dist/${{ env.GOOS }}/${{ env.GOARCH }}/${{ env.PKG_NAME }} LICENSE
148
+ echo "path=${ZIP_FILE}" >> $GITHUB_OUTPUT
149
+ echo "name=$(basename ${ZIP_FILE})" >> $GITHUB_OUTPUT
150
+ - name : Upload binary
144
151
uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
145
152
with :
146
- name : ${{ env.PKG_NAME }}_${{ needs.get-product-version .outputs.product-version }}_linux_${{ matrix.arch }}.zip
147
- path : out/ ${{ env.PKG_NAME }}_${{ needs.get-product-version .outputs.product-version }}_linux_${{ matrix.arch }}.zip
153
+ name : ${{ steps.build-binary .outputs.name }}
154
+ path : ${{ steps.build-binary .outputs.path }}
148
155
149
156
build-docker :
150
157
name : Docker ${{ matrix.arch }} build
You can’t perform that action at this time.
0 commit comments