Skip to content

Commit

Permalink
create bundle for static packages
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Mar 29, 2022
1 parent 4537b98 commit c34fe89
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
name: Build
run: |
make TARGETPLATFORM=${{ matrix.platform }} static
-
name: List files
run: |
tree -nh ./static/build
-
name: Upload static packages
uses: actions/upload-artifact@v2
Expand Down
12 changes: 12 additions & 0 deletions static/build-static
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,15 @@ case ${TARGETOS} in
)
;;
esac

# create bundle
bundlePlatform="${TARGETOS}-${TARGETARCH}"
if [ -n "$TARGETVARIANT" ]; then
bundlePlatform="${bundlePlatform}-${TARGETVARIANT}"
fi
(
set -x
cd "${buildDir}"
rm -r */
tar -zvcf "${CURDIR}/build/bundles-ce-static-${bundlePlatform}.tar.gz" .
)

0 comments on commit c34fe89

Please sign in to comment.