Skip to content

Commit 3b4b38c

Browse files
crazy-maxthaJeztah
authored andcommitted
static: create bundles
Signed-off-by: CrazyMax <[email protected]> Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f4584e0 commit 3b4b38c

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,14 @@ jobs:
6060
run: |
6161
make TARGETPLATFORM=${{ matrix.platform }} static
6262
-
63-
name: Upload static packages
63+
name: List files
64+
run: |
65+
tree -nh ./static/build
66+
-
67+
name: Upload static bundle
6468
uses: actions/upload-artifact@v2
6569
with:
6670
name: static-${{ env.PLATFORM_PAIR }}
67-
path: static/build/${{ matrix.platform }}/*.*
71+
path: static/build/*.tar.gz
6872
if-no-files-found: error
6973
retention-days: 7

scripts/target-platform

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,43 @@ if [ -z "$TARGETARCH" ]; then
9292
TARGETPLATFORM="$TARGETPLATFORM/$TARGETVARIANT"
9393
fi
9494
fi
95+
96+
# bundle arch
97+
case "$TARGETARCH$TARGETVARIANT" in
98+
"amd64")
99+
BUNDLEARCH="x86_64"
100+
;;
101+
"386")
102+
BUNDLEARCH="i386"
103+
;;
104+
"arm64")
105+
BUNDLEARCH="aarch64"
106+
;;
107+
"armv7")
108+
BUNDLEARCH="armhf"
109+
;;
110+
"armv6")
111+
BUNDLEARCH="armel"
112+
;;
113+
"riscv64")
114+
BUNDLEARCH="riscv64"
115+
;;
116+
"ppc64le")
117+
BUNDLEARCH="ppc64le"
118+
;;
119+
"s390x")
120+
BUNDLEARCH="s390x"
121+
;;
122+
"mips")
123+
BUNDLEARCH="mips"
124+
;;
125+
"mipsle")
126+
BUNDLEARCH="mipsle"
127+
;;
128+
"mips64")
129+
BUNDLEARCH="mips64"
130+
;;
131+
"mips64le")
132+
BUNDLEARCH="mips64le"
133+
;;
134+
esac

static/build-static

100644100755
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,11 @@ case ${TARGETOS} in
235235
)
236236
;;
237237
esac
238+
239+
# create bundle
240+
(
241+
set -x
242+
cd "${buildDir}"
243+
rm -r */
244+
tar -zvcf "${CURDIR}/build/bundles-ce-static-${TARGETOS}-${BUNDLEARCH}.tar.gz" .
245+
)

0 commit comments

Comments
 (0)