File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -ex
4+
5+ if [ $# -lt 1 ]; then
6+ echo $0 tag
7+ exit 1
8+ fi
9+
10+ TAG=$1
11+
12+ time docker build -f Dockerfile . -t mstorsjo/llvm-mingw:latest -t mstorsjo/llvm-mingw:$TAG
13+ time docker build -f Dockerfile.dev . -t mstorsjo/llvm-mingw:dev -t mstorsjo/llvm-mingw:dev-$TAG
14+
15+ DISTRO=ubuntu-16.04
16+ docker run --rm mstorsjo/llvm-mingw:latest sh -c " cd /opt && mv llvm-mingw llvm-mingw-$TAG -$DISTRO && tar -Jcvf - llvm-mingw-$TAG -$DISTRO " > llvm-mingw-$TAG -$DISTRO .tar.xz
17+
18+ cleanup () {
19+ for i in $temp_images ; do
20+ docker rmi --no-prune $i || true
21+ done
22+ }
23+
24+ trap cleanup EXIT
25+
26+ for arch in i686 x86_64 armv7 aarch64; do
27+ temp=$( uuidgen)
28+ temp_images=" $temp_images $temp "
29+ time docker build -f Dockerfile.cross --build-arg BASE=mstorsjo/llvm-mingw:dev --build-arg CROSS_ARCH=$arch --build-arg TAG=$TAG - -t $temp .
30+ ./extract-docker.sh $temp /llvm-mingw-$TAG -$arch .zip
31+ done
You can’t perform that action at this time.
0 commit comments