mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Use glog 0.6 release to run Windows Github workflow
Change-Id: I2853ea13c798c6ef05b3a19a2d3986b514caf1ed
This commit is contained in:
@@ -67,18 +67,18 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: glog/
|
path: glog/
|
||||||
key: ${{matrix.msvc}}-glog-0.6.0rc1-${{matrix.arch}}-${{matrix.build_type}}-${{matrix.lib}}
|
key: ${{matrix.msvc}}-glog-0.6.0-${{matrix.arch}}-${{matrix.build_type}}-${{matrix.lib}}
|
||||||
|
|
||||||
- name: Download glog
|
- name: Download glog
|
||||||
if: steps.cache-glog.outputs.cache-hit != 'true'
|
if: steps.cache-glog.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
(New-Object System.Net.WebClient).DownloadFile("https://github.com/google/glog/archive/refs/tags/v0.6.0-rc1.zip", "v0.6.0-rc1.zip");
|
(New-Object System.Net.WebClient).DownloadFile("https://github.com/google/glog/archive/refs/tags/v0.6.0.zip", "v0.6.0.zip");
|
||||||
Expand-Archive -Path v0.6.0-rc1.zip -DestinationPath .;
|
Expand-Archive -Path v0.6.0.zip -DestinationPath .;
|
||||||
|
|
||||||
- name: Setup glog
|
- name: Setup glog
|
||||||
if: steps.cache-glog.outputs.cache-hit != 'true'
|
if: steps.cache-glog.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cmake -S glog-0.6.0-rc1 -B build-glog `
|
cmake -S glog-0.6.0 -B build-glog `
|
||||||
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} `
|
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} `
|
||||||
-DBUILD_TESTING=OFF `
|
-DBUILD_TESTING=OFF `
|
||||||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/glog `
|
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/glog `
|
||||||
|
|||||||
Reference in New Issue
Block a user