diff options
| author | “pengxuanzheng” <[email protected]> | 2022-07-28 04:03:25 +0000 |
|---|---|---|
| committer | “pengxuanzheng” <[email protected]> | 2022-07-28 06:14:34 +0000 |
| commit | 4059511ad664da723b49eb26a7500c63167efc4b (patch) | |
| tree | f85953e4c7e8b915ef27780517877744965e91a6 | |
| parent | 6f94820fca0ea6686aad2146c43adfbe5f6aa9b7 (diff) | |
✨ feat: 静态编译feature-static
| -rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c4ded8b..7e75772 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -65,6 +65,8 @@ run_test_for_centos7: stage: test image: $BUILD_IMAGE_CENTOS7 extends: .build_by_travis_for_centos7 + variables: + BUILD_STATIC_LIB: 1 script: - yum makecache - ./ci/travis.sh @@ -75,6 +77,8 @@ run_test_for_centos8: stage: test image: $BUILD_IMAGE_CENTOS8 extends: .build_by_travis_for_centos8 + variables: + BUILD_STATIC_LIB: 1 script: - yum makecache - yum install -y libnsl @@ -87,6 +91,7 @@ branch_build_debug_for_centos7: extends: .build_by_travis_for_centos7 variables: BUILD_TYPE: Debug + BUILD_STATIC_LIB: 1 except: - /^develop.*$/i - /^master.*$/i @@ -96,6 +101,7 @@ branch_build_release_for_centos7: stage: build variables: BUILD_TYPE: RelWithDebInfo + BUILD_STATIC_LIB: 1 extends: .build_by_travis_for_centos7 except: - /^develop.*$/i @@ -107,6 +113,7 @@ develop_build_debug_for_centos7: extends: .build_by_travis_for_centos7 variables: BUILD_TYPE: Debug + BUILD_STATIC_LIB: 1 PACKAGE: 1 UPLOAD_RPM: 1 ASAN_OPTION: ADDRESS @@ -127,6 +134,7 @@ develop_build_release_for_centos7: extends: .build_by_travis_for_centos7 variables: BUILD_TYPE: RelWithDebInfo + BUILD_STATIC_LIB: 1 PACKAGE: 1 UPLOAD_RPM: 1 TESTING_VERSION_BUILF: 1 @@ -145,6 +153,7 @@ release_build_debug_for_centos7: stage: build variables: BUILD_TYPE: Debug + BUILD_STATIC_LIB: 1 PACKAGE: 1 UPLOAD_RPM: 1 UPLOAD_SYMBOL_FILES: 1 @@ -163,6 +172,7 @@ release_build_release_for_centos7: stage: build variables: BUILD_TYPE: RelWithDebInfo + BUILD_STATIC_LIB: 1 PACKAGE: 1 UPLOAD_RPM: 1 UPLOAD_SYMBOL_FILES: 1 @@ -182,6 +192,7 @@ branch_build_debug_for_centos8: extends: .build_by_travis_for_centos8 variables: BUILD_TYPE: Debug + BUILD_STATIC_LIB: 1 except: - /^dev*.*$/i - /^rel*.*$/i @@ -192,6 +203,7 @@ branch_build_release_for_centos8: stage: build variables: BUILD_TYPE: RelWithDebInfo + BUILD_STATIC_LIB: 1 extends: .build_by_travis_for_centos8 except: - /^dev*.*$/i @@ -204,6 +216,7 @@ develop_build_debug_for_centos8: extends: .build_by_travis_for_centos8 variables: BUILD_TYPE: Debug + BUILD_STATIC_LIB: 1 PACKAGE: 1 UPLOAD_RPM: 1 ASAN_OPTION: ADDRESS @@ -224,6 +237,7 @@ develop_build_release_for_centos8: extends: .build_by_travis_for_centos8 variables: BUILD_TYPE: RelWithDebInfo + BUILD_STATIC_LIB: 1 PACKAGE: 1 UPLOAD_RPM: 1 TESTING_VERSION_BUILF: 1 @@ -242,6 +256,7 @@ release_build_debug_for_centos8: stage: build variables: BUILD_TYPE: Debug + BUILD_STATIC_LIB: 1 PACKAGE: 1 UPLOAD_RPM: 1 UPLOAD_SYMBOL_FILES: 1 @@ -260,6 +275,7 @@ release_build_release_for_centos8: stage: build variables: BUILD_TYPE: RelWithDebInfo + BUILD_STATIC_LIB: 1 PACKAGE: 1 UPLOAD_RPM: 1 UPLOAD_SYMBOL_FILES: 1 |
