add install zip
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Failing after 1m19s
Build Process Supervisor / build (amd64, .exe, windows) (push) Failing after 1m16s
Build Process Supervisor / build (arm, 6, , linux) (push) Failing after 1m17s
Build Process Supervisor / build (arm64, , linux) (push) Has been cancelled
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Failing after 1m19s
Build Process Supervisor / build (amd64, .exe, windows) (push) Failing after 1m16s
Build Process Supervisor / build (arm, 6, , linux) (push) Failing after 1m17s
Build Process Supervisor / build (arm64, , linux) (push) Has been cancelled
This commit is contained in:
@@ -56,16 +56,6 @@ jobs:
|
|||||||
|
|
||||||
go version
|
go version
|
||||||
|
|
||||||
- name: Cache Go build and module cache in /data
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
/data/gocache
|
|
||||||
/data/gomodcache
|
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-
|
|
||||||
|
|
||||||
- name: Download Go dependencies
|
- name: Download Go dependencies
|
||||||
run: |
|
run: |
|
||||||
export GOROOT=/data/go/go
|
export GOROOT=/data/go/go
|
||||||
@@ -93,6 +83,9 @@ jobs:
|
|||||||
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags="-s -w" -trimpath -o "$OUTPUT"
|
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags="-s -w" -trimpath -o "$OUTPUT"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Install zip
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y zip
|
||||||
|
|
||||||
- name: Zip artifact
|
- name: Zip artifact
|
||||||
run: |
|
run: |
|
||||||
zip bin/${{ env.APP_NAME }}-${{ matrix.os }}-${{ matrix.arch }}.zip bin/${{ env.APP_NAME }}-*
|
zip bin/${{ env.APP_NAME }}-${{ matrix.os }}-${{ matrix.arch }}.zip bin/${{ env.APP_NAME }}-*
|
||||||
|
Reference in New Issue
Block a user