Skip to content

Commit ea0af5e

Browse files
committed
static: create bundles
Signed-off-by: CrazyMax <[email protected]>
1 parent 23516f2 commit ea0af5e

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
@@ -104,3 +104,43 @@ if [ -z "$TARGETARCH" ]; then
104104
TARGETPLATFORM="$TARGETPLATFORM/$TARGETVARIANT"
105105
fi
106106
fi
107+
108+
# bundle arch
109+
case "$TARGETARCH$TARGETVARIANT" in
110+
"amd64")
111+
BUNDLEARCH="x86_64"
112+
;;
113+
"386")
114+
BUNDLEARCH="i386"
115+
;;
116+
"arm64")
117+
BUNDLEARCH="aarch64"
118+
;;
119+
"armv7")
120+
BUNDLEARCH="armhf"
121+
;;
122+
"armv6")
123+
BUNDLEARCH="armel"
124+
;;
125+
"riscv64")
126+
BUNDLEARCH="riscv64"
127+
;;
128+
"ppc64le")
129+
BUNDLEARCH="ppc64le"
130+
;;
131+
"s390x")
132+
BUNDLEARCH="s390x"
133+
;;
134+
"mips")
135+
BUNDLEARCH="mips"
136+
;;
137+
"mipsle")
138+
BUNDLEARCH="mipsle"
139+
;;
140+
"mips64")
141+
BUNDLEARCH="mips64"
142+
;;
143+
"mips64le")
144+
BUNDLEARCH="mips64le"
145+
;;
146+
esac

static/build-static

100644100755
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,11 @@ case ${TARGETOS} in
226226
)
227227
;;
228228
esac
229+
230+
# create bundle
231+
(
232+
set -x
233+
cd "${buildDir}"
234+
rm -r */
235+
tar -zvcf "${CURDIR}/build/bundles-ce-static-${TARGETOS}-${BUNDLEARCH}.tar.gz" .
236+
)

0 commit comments

Comments
 (0)