CI: compress /build binary artifacts (#31757)
This commit is contained in:
parent
0d76c1277e
commit
940b5f58d1
1 changed files with 3 additions and 1 deletions
4
.github/workflows/command-pr-build.yml
vendored
4
.github/workflows/command-pr-build.yml
vendored
|
|
@ -99,12 +99,14 @@ jobs:
|
|||
go build -trimpath -tags release \
|
||||
-ldflags "-X github.com/evcc-io/evcc/util.Version=pr-${NUM}-${SHA:0:7} -X github.com/evcc-io/evcc/util.Commit=${SHA:0:7} -s -w" \
|
||||
-o "evcc-linux-${{ matrix.arch }}" .
|
||||
gzip -9 "evcc-linux-${{ matrix.arch }}"
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: evcc-pr-${{ github.event.issue.number }}-linux-${{ matrix.arch }}
|
||||
path: evcc-linux-${{ matrix.arch }}
|
||||
path: evcc-linux-${{ matrix.arch }}.gz
|
||||
compression-level: 0 # already gzip'd, skip redundant zip compression
|
||||
retention-days: 14
|
||||
|
||||
docker:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue