mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Remove glog and gflags from the CI workflows
Change-Id: I94199ddcbd105b33a8401366dd0d952cc79ec755
This commit is contained in:
@@ -83,65 +83,6 @@ jobs:
|
||||
--config ${{matrix.build_type}} \
|
||||
--target install
|
||||
|
||||
- name: Cache gflags
|
||||
id: cache-gflags
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: gflags/
|
||||
key: NDK-${{matrix.os}}-gflags-2.2.2-${{matrix.abi}}-${{matrix.build_type}}-${{matrix.lib}}
|
||||
|
||||
- name: Download gflags
|
||||
if: steps.cache-gflags.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
wget https://github.com/gflags/gflags/archive/refs/tags/v2.2.2.zip
|
||||
unzip v2.2.2.zip
|
||||
|
||||
- name: Setup gflags
|
||||
if: steps.cache-gflags.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cmake -S gflags-2.2.2 -B build-gflags \
|
||||
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DCMAKE_ANDROID_API=${{matrix.android_api_level}} \
|
||||
-DCMAKE_ANDROID_ARCH_ABI=${{matrix.abi}} \
|
||||
-DCMAKE_ANDROID_STL_TYPE=c++_shared \
|
||||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
|
||||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/gflags \
|
||||
-DCMAKE_SYSTEM_NAME=Android
|
||||
cmake --build build-gflags \
|
||||
--config ${{matrix.build_type}} \
|
||||
--target install
|
||||
|
||||
- name: Cache glog
|
||||
id: cache-glog
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: glog/
|
||||
key: NDK-${{matrix.os}}-glog-0.5-${{matrix.abi}}-${{matrix.build_type}}-${{matrix.lib}}
|
||||
|
||||
- name: Download glog
|
||||
if: steps.cache-glog.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
wget https://github.com/google/glog/archive/refs/tags/v0.5.0.zip
|
||||
unzip v0.5.0.zip
|
||||
|
||||
- name: Setup glog
|
||||
if: steps.cache-glog.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cmake -S glog-0.5.0 -B build-glog \
|
||||
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DCMAKE_ANDROID_API=${{matrix.android_api_level}} \
|
||||
-DCMAKE_ANDROID_ARCH_ABI=${{matrix.abi}} \
|
||||
-DCMAKE_ANDROID_STL_TYPE=c++_shared \
|
||||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
|
||||
-DCMAKE_FIND_ROOT_PATH=${{github.workspace}}/gflags \
|
||||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/glog \
|
||||
-DCMAKE_SYSTEM_NAME=Android
|
||||
cmake --build build-glog \
|
||||
--config ${{matrix.build_type}} \
|
||||
--target install
|
||||
|
||||
- name: Cache Build
|
||||
id: cache-build
|
||||
uses: actions/cache@v4
|
||||
@@ -165,7 +106,7 @@ jobs:
|
||||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=$(which ccache) \
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
|
||||
-DCMAKE_FIND_ROOT_PATH="${{github.workspace}}/eigen;${{github.workspace}}/gflags;${{github.workspace}}/glog" \
|
||||
-DCMAKE_FIND_ROOT_PATH="${{github.workspace}}/eigen" \
|
||||
-DCMAKE_SYSTEM_NAME=Android
|
||||
|
||||
- name: Build
|
||||
|
||||
Reference in New Issue
Block a user