File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 - darwin-arm64
4545 - windows-amd64
4646 steps :
47- -
48- name : Prepare
49- run : |
50- platform=${{ matrix.platform }}
51- echo "TARGETPLATFORM=${platform//-/\/}" >> $GITHUB_ENV
5247 -
5348 name : Checkout
5449 uses : actions/checkout@v3
@@ -60,10 +55,14 @@ jobs:
6055 run : |
6156 make static-${{ matrix.platform }}
6257 -
63- name : Upload static packages
58+ name : List files
59+ run : |
60+ tree -nh ./static/build
61+ -
62+ name : Upload static bundle
6463 uses : actions/upload-artifact@v2
6564 with :
6665 name : static-${{ matrix.platform }}
67- path : static/build/${{ env.TARGETPLATFORM }}/*.*
66+ path : static/build/*.tar.gz
6867 if-no-files-found : error
6968 retention-days : 7
Original file line number Diff line number Diff line change @@ -104,3 +104,43 @@ if [ -z "$TARGETARCH" ]; then
104104 TARGETPLATFORM=" $TARGETPLATFORM /$TARGETVARIANT "
105105 fi
106106fi
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
237237 )
238238 ;;
239239esac
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