File tree Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,14 @@ jobs:
60
60
run : |
61
61
make TARGETPLATFORM=${{ matrix.platform }} static
62
62
-
63
- name : Upload static packages
63
+ name : List files
64
+ run : |
65
+ tree -nh ./static/build
66
+ -
67
+ name : Upload static bundle
64
68
uses : actions/upload-artifact@v2
65
69
with :
66
70
name : static-${{ env.PLATFORM_PAIR }}
67
- path : static/build/${{ matrix.platform }}/*.*
71
+ path : static/build/*.tar.gz
68
72
if-no-files-found : error
69
73
retention-days : 7
Original file line number Diff line number Diff line change @@ -92,3 +92,43 @@ if [ -z "$TARGETARCH" ]; then
92
92
TARGETPLATFORM=" $TARGETPLATFORM /$TARGETVARIANT "
93
93
fi
94
94
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
Original file line number Diff line number Diff line change @@ -241,3 +241,11 @@ case ${TARGETOS} in
241
241
)
242
242
;;
243
243
esac
244
+
245
+ # create bundle
246
+ (
247
+ set -x
248
+ cd " ${buildDir} "
249
+ rm -r * /
250
+ tar -zvcf " ${CURDIR} /build/bundles-ce-static-${TARGETOS} -${BUNDLEARCH} .tar.gz" .
251
+ )
You can’t perform that action at this time.
0 commit comments