File tree Expand file tree Collapse file tree 3 files changed +54
-7
lines changed Expand file tree Collapse file tree 3 files changed +54
-7
lines changed Original file line number Diff line number Diff line change 44
44
- darwin-arm64
45
45
- windows-amd64
46
46
steps :
47
- -
48
- name : Prepare
49
- run : |
50
- platform=${{ matrix.platform }}
51
- echo "TARGETPLATFORM=${platform//-/\/}" >> $GITHUB_ENV
52
47
-
53
48
name : Checkout
54
49
uses : actions/checkout@v3
@@ -60,10 +55,14 @@ jobs:
60
55
run : |
61
56
make static-${{ matrix.platform }}
62
57
-
63
- name : Upload static packages
58
+ name : List files
59
+ run : |
60
+ tree -nh ./static/build
61
+ -
62
+ name : Upload static bundle
64
63
uses : actions/upload-artifact@v2
65
64
with :
66
65
name : static-${{ matrix.platform }}
67
- path : static/build/${{ env.TARGETPLATFORM }}/*.*
66
+ path : static/build/*.tar.gz
68
67
if-no-files-found : error
69
68
retention-days : 7
Original file line number Diff line number Diff line change @@ -104,3 +104,43 @@ if [ -z "$TARGETARCH" ]; then
104
104
TARGETPLATFORM=" $TARGETPLATFORM /$TARGETVARIANT "
105
105
fi
106
106
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
Original file line number Diff line number Diff line change @@ -237,3 +237,11 @@ case ${TARGETOS} in
237
237
)
238
238
;;
239
239
esac
240
+
241
+ # create bundle
242
+ (
243
+ set -x
244
+ cd " ${buildDir} "
245
+ rm -r * /
246
+ tar -zvcf " ${CURDIR} /build/bundles-ce-static-${TARGETOS} -${BUNDLEARCH} .tar.gz" .
247
+ )
You can’t perform that action at this time.
0 commit comments