-
Notifications
You must be signed in to change notification settings - Fork 56
/
.gitlab-ci.yml
77 lines (69 loc) · 3.74 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
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/viaduck/ci
stages:
- build # contains build and test and deploy
variables:
OPENSSL_BUILD_VERSION: "3.3.2"
OPENSSL_BUILD_HASH: "2e8a40b01979afe8be0bbfb3de5dc1c6709fedb46d6c89c10da114ab5fc3d281"
PREBUILT_AUTH: "$PREBUILT_USER:$PREBUILT_PASSWORD"
ANDROID_PLATFORM: "android-23"
linux-x86_64:
script:
- mkdir build-linux-x86_64
- useradd -m -d /home/jdoe jdoe # OpenSSL tests must be run as unprivileged user
- cd build-linux-x86_64
- cmake ../ -DBUILD_OPENSSL=ON -DOPENSSL_BUILD_VERSION=$OPENSSL_BUILD_VERSION -DOPENSSL_BUILD_HASH=$OPENSSL_BUILD_HASH -DOPENSSL_INSTALL_MAN=ON -DOPENSSL_ENABLE_TESTS=ON
- chmod -R 777 . # jdoe must be able to write to build directory
- su -l jdoe -c "cd `pwd` && make" # build and test as unprivileged
- DESTDIR=. make install
- ../scripts/upload_result.sh x86_64-linux usr
stage: build
windows-x86:
image: viaduck/ci:mingw
script:
- mkdir build-windows-x86
- cd build-windows-x86
- cmake ../ -DBUILD_OPENSSL=ON -DOPENSSL_BUILD_VERSION=$OPENSSL_BUILD_VERSION -DOPENSSL_BUILD_HASH=$OPENSSL_BUILD_HASH -DOPENSSL_INSTALL_MAN=ON -DCROSS=ON -DCROSS_PREFIX=i686-w64-mingw32- -DCROSS_TARGET=mingw
- make
- DESTDIR=. make install
- ../scripts/upload_result.sh i686-w64-mingw32 usr
stage: build
windows-x86_64:
image: viaduck/ci:mingw
script:
- mkdir build-windows-x86_64
- cd build-windows-x86_64
- cmake ../ -DBUILD_OPENSSL=ON -DOPENSSL_BUILD_VERSION=$OPENSSL_BUILD_VERSION -DOPENSSL_BUILD_HASH=$OPENSSL_BUILD_HASH -DOPENSSL_INSTALL_MAN=ON -DCROSS=ON -DCROSS_PREFIX=x86_64-w64-mingw32- -DCROSS_TARGET=mingw64
- make
- DESTDIR=. make install
- ../scripts/upload_result.sh x86_64-w64-mingw32 usr
stage: build
android-arm64-v8a:
image: viaduck/ci:android
script:
- mkdir build-android-arm64-v8a
- cd build-android-arm64-v8a
- cmake ../ -DBUILD_OPENSSL=ON -DOPENSSL_BUILD_VERSION=$OPENSSL_BUILD_VERSION -DOPENSSL_BUILD_HASH=$OPENSSL_BUILD_HASH -DCROSS_ANDROID=ON -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
- make
- DESTDIR=. make install
- ../scripts/upload_result.sh arm64-v8a-android usr
stage: build
android-armeabi-v7a:
image: viaduck/ci:android
script:
- mkdir build-android-armeabi-v7a
- cd build-android-armeabi-v7a
- cmake ../ -DBUILD_OPENSSL=ON -DOPENSSL_BUILD_VERSION=$OPENSSL_BUILD_VERSION -DOPENSSL_BUILD_HASH=$OPENSSL_BUILD_HASH -DCROSS_ANDROID=ON -DANDROID_PLATFORM=$ANDROID_PLATFORM -DANDROID_ABI=armeabi-v7a -DANDROID_ARM_MODE=arm -DANDROID_TOOLCHAIN=clang -DANDROID_NDK=$ANDROID_NDK -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
- make
- DESTDIR=. make install
- ../scripts/upload_result.sh armeabi-v7a-android usr
stage: build
android-x86_64:
image: viaduck/ci:android
script:
- mkdir build-android-x86_64
- cd build-android-x86_64
- cmake ../ -DBUILD_OPENSSL=ON -DOPENSSL_BUILD_VERSION=$OPENSSL_BUILD_VERSION -DOPENSSL_BUILD_HASH=$OPENSSL_BUILD_HASH -DCROSS_ANDROID=ON -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
- make
- DESTDIR=. make install
- ../scripts/upload_result.sh x86_64-android usr
stage: build