@@ -4,37 +4,49 @@ services:
4
4
- docker
5
5
6
6
matrix :
7
- include :
8
- - env :
9
- - TARGET_OS=linux64
10
- - CROSS_TRIPLE=x86_64-linux-gnu
11
- - env :
12
- - TARGET_OS=linux32
13
- - CROSS_TRIPLE=x86_64-linux-gnu
14
- - env :
15
- - TARGET_OS=linux-armhf
16
- - CROSS_TRIPLE=x86_64-linux-gnu
17
- - env :
18
- - TARGET_OS=win32
19
- - CROSS_TRIPLE=i686-w64-mingw32
20
- # Unfortunately multiarch/crossbuild doesn't come with 'zip',
21
- # so we build a tgz archive in the container, and re-package it later in the script.
22
- - EXTRA_ARGS='-e ARCHIVE=tar'
23
- - env :
24
- - TARGET_OS=osx
25
- - CROSS_TRIPLE=x86_64-apple-darwin
7
+ include :
8
+ - env :
9
+ - TARGET_OS=linux64
10
+ - DOCKER_IMAGE=multiarch/crossbuild
11
+ - CROSS_TRIPLE=x86_64-linux-gnu
12
+ - BUILD_DIR=/workdir
13
+ - env :
14
+ - TARGET_OS=linux32
15
+ # multiarch/crossbuild doesn't come with 32-bit compilers, use a different image
16
+ - DOCKER_IMAGE=dockcross/linux-x86
17
+ - CROSS_TRIPLE=i686-linux-gnu
18
+ - BUILD_DIR=/work
19
+ - env :
20
+ - TARGET_OS=linux-armhf
21
+ - DOCKER_IMAGE=multiarch/crossbuild
22
+ - CROSS_TRIPLE=arm-linux-gnueabihf
23
+ - BUILD_DIR=/workdir
24
+ - env :
25
+ - TARGET_OS=win32
26
+ - DOCKER_IMAGE=multiarch/crossbuild
27
+ - CROSS_TRIPLE=i686-w64-mingw32
28
+ - BUILD_DIR=/workdir
29
+ # multiarch/crossbuild doesn't come with 'zip',
30
+ # so we build a tgz archive in the container, and re-package it later in the script.
31
+ - EXTRA_ARGS='-e ARCHIVE=tar'
32
+ - env :
33
+ - TARGET_OS=osx
34
+ - DOCKER_IMAGE=multiarch/crossbuild
35
+ - CROSS_TRIPLE=x86_64-apple-darwin
36
+ - BUILD_DIR=/workdir
37
+
26
38
27
39
script :
28
40
- export VER=$(git describe)
29
41
- echo ${VER}
30
42
31
43
- >-
32
44
docker run --rm
33
- -v $PWD:/workdir
45
+ -v ${ PWD}:${BUILD_DIR}
34
46
-e TARGET_OS=${TARGET_OS}
35
47
-e CROSS_TRIPLE=${CROSS_TRIPLE}
36
48
${EXTRA_ARGS}
37
- multiarch/crossbuild
49
+ ${DOCKER_IMAGE}
38
50
make clean dist
39
51
40
52
# for windows, prepare zip archive
0 commit comments