-
Notifications
You must be signed in to change notification settings - Fork 19
/
.gitlab-ci.yml
90 lines (82 loc) · 3.91 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
image: viaduck/ci
stages:
- build # contains build and test and deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
ICU_BUILD_VERSION: "75.1"
ICU_BUILD_HASH: "cb968df3e4d2e87e8b11c49a5d01c787bd13b9545280fc6642f826527618caef"
PREBUILT_AUTH: "$PREBUILT_USER:$PREBUILT_PASSWORD"
ANDROID_PLATFORM: "android-23"
build:linux-x86_64:
script:
- mkdir build-linux-x86_64
- cd build-linux-x86_64
- cmake -GNinja ../ -DBUILD_ICU=ON -DICU_BUILD_VERSION=$ICU_BUILD_VERSION -DICU_BUILD_HASH=$ICU_BUILD_HASH
- ninja
- ../scripts/upload_result.sh x86_64-linux icu_host
stage: build
only:
- master
build:windows-x86_64:
image: viaduck/ci:mingw
script:
- update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix # fix c++11 threading support on debian
- update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
- mkdir build-windows-x86_64
- cd build-windows-x86_64
- cmake -GNinja ../ -DBUILD_ICU=ON -DICU_CROSS_ARCH=x86_64-w64-mingw32 -DICU_BUILD_VERSION=$ICU_BUILD_VERSION -DICU_BUILD_HASH=$ICU_BUILD_HASH -DCMAKE_TOOLCHAIN_FILE=../cmake-modules/toolchains/mingw64-x86_64.cmake
- ninja
- cp icu_cross-build/lib/*.dll icu_cross/lib/ # workaround for missing copy step
- for file in icu_cross/lib/icudt*.dll; do mv $file ${file//icudt./icudt}; done # workaround for wrong dll name
- ../scripts/upload_result.sh x86_64-w64-mingw32 icu_cross
stage: build
only:
- master
build:android-arm64-v8a:
image: viaduck/ci:android
script:
- echo $ANDROID_NDK
- mkdir build-android-arm64-v8a
- cd build-android-arm64-v8a
- cmake -GNinja ../ -DBUILD_ICU=ON -DICU_BUILD_VERSION=$ICU_BUILD_VERSION -DICU_BUILD_HASH=$ICU_BUILD_HASH -DANDROID_PLATFORM=$ANDROID_PLATFORM -DANDROID_ABI=arm64-v8a -DANDROID_TOOLCHAIN=clang -DANDROID_NDK=$ANDROID_NDK -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
- ninja
- ../scripts/upload_result.sh arm64-v8a-android icu_cross
stage: build
only:
- master
build:android-armeabi-v7a:
image: viaduck/ci:android
script:
- echo $ANDROID_NDK
- mkdir build-android-armeabi-v7a
- cd build-android-armeabi-v7a
- cmake -GNinja ../ -DBUILD_ICU=ON -DICU_BUILD_VERSION=$ICU_BUILD_VERSION -DICU_BUILD_HASH=$ICU_BUILD_HASH -DANDROID_PLATFORM=$ANDROID_PLATFORM -DANDROID_ABI=armeabi-v7a -DANDROID_TOOLCHAIN=clang -DANDROID_NDK=$ANDROID_NDK -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
- ninja
- ../scripts/upload_result.sh armeabi-v7a-android icu_cross
stage: build
only:
- master
build:android-i686:
image: viaduck/ci:android
script:
- echo $ANDROID_NDK
- mkdir build-android-i686
- cd build-android-i686
- cmake -GNinja ../ -DBUILD_ICU=ON -DICU_BUILD_VERSION=$ICU_BUILD_VERSION -DICU_BUILD_HASH=$ICU_BUILD_HASH -DANDROID_PLATFORM=$ANDROID_PLATFORM -DANDROID_ABI=x86 -DANDROID_TOOLCHAIN=clang -DANDROID_NDK=$ANDROID_NDK -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
- ninja
- ../scripts/upload_result.sh i686-android icu_cross
stage: build
only:
- master
build:android-x86_64:
image: viaduck/ci:android
script:
- echo $ANDROID_NDK
- mkdir build-android-x86_64
- cd build-android-x86_64
- cmake -GNinja ../ -DBUILD_ICU=ON -DICU_BUILD_VERSION=$ICU_BUILD_VERSION -DICU_BUILD_HASH=$ICU_BUILD_HASH -DANDROID_PLATFORM=$ANDROID_PLATFORM -DANDROID_ABI=x86_64 -DANDROID_TOOLCHAIN=clang -DANDROID_NDK=$ANDROID_NDK -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
- ninja
- ../scripts/upload_result.sh x86_64-android icu_cross
stage: build
only:
- master