-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
88 lines (80 loc) · 3.71 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
image: viaduck/ci
stages:
- build # contains build and test and deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
ICU_BUILD_VERSION: "76.1"
ICU_BUILD_HASH: "dfacb46bfe4747410472ce3e1144bf28a102feeaa4e3875bac9b4c6cf30f4f3e"
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
- ../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