Skip to content

Commit c34fe89

Browse files
committed
create bundle for static packages
Signed-off-by: CrazyMax <[email protected]>
1 parent 4537b98 commit c34fe89

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
name: Build
6060
run: |
6161
make TARGETPLATFORM=${{ matrix.platform }} static
62+
-
63+
name: List files
64+
run: |
65+
tree -nh ./static/build
6266
-
6367
name: Upload static packages
6468
uses: actions/upload-artifact@v2

static/build-static

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,15 @@ case ${TARGETOS} in
343343
)
344344
;;
345345
esac
346+
347+
# create bundle
348+
bundlePlatform="${TARGETOS}-${TARGETARCH}"
349+
if [ -n "$TARGETVARIANT" ]; then
350+
bundlePlatform="${bundlePlatform}-${TARGETVARIANT}"
351+
fi
352+
(
353+
set -x
354+
cd "${buildDir}"
355+
rm -r */
356+
tar -zvcf "${CURDIR}/build/bundles-ce-static-${bundlePlatform}.tar.gz" .
357+
)

0 commit comments

Comments
 (0)