Improve CI workflows (#1291)
* Fix Cirrus CI CMake is not installed at this point yet. * Add caching in Circle CI * Add caching to the MinGW Github workflows * Fix Circle CI config Co-authored-by: friendlyanon <friendlyanon@users.noreply.github.com>
This commit is contained in:
parent
a06e0958ca
commit
669e5b91b4
|
@ -61,6 +61,19 @@ executors:
|
||||||
|
|
||||||
# Reusable test commands (and initializer for clang 6)
|
# Reusable test commands (and initializer for clang 6)
|
||||||
commands:
|
commands:
|
||||||
|
dependency_restore:
|
||||||
|
steps:
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- cmake-cache-{{ checksum "dependencies/CMakeLists.txt" }}
|
||||||
|
|
||||||
|
dependency_cache:
|
||||||
|
steps:
|
||||||
|
- save_cache:
|
||||||
|
key: cmake-cache-{{ checksum "dependencies/CMakeLists.txt" }}
|
||||||
|
paths:
|
||||||
|
- dependencies/.cache
|
||||||
|
|
||||||
install_cmake:
|
install_cmake:
|
||||||
steps:
|
steps:
|
||||||
- run: apt-get update -qq
|
- run: apt-get update -qq
|
||||||
|
@ -74,7 +87,9 @@ commands:
|
||||||
cmake_build_cache:
|
cmake_build_cache:
|
||||||
steps:
|
steps:
|
||||||
- cmake_prep
|
- cmake_prep
|
||||||
|
- dependency_restore
|
||||||
- run: cmake $CMAKE_FLAGS -DCMAKE_INSTALL_PREFIX:PATH=destination -B build .
|
- run: cmake $CMAKE_FLAGS -DCMAKE_INSTALL_PREFIX:PATH=destination -B build .
|
||||||
|
- dependency_cache # dependencies are produced in the configure step
|
||||||
|
|
||||||
cmake_build:
|
cmake_build:
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -10,7 +10,7 @@ task:
|
||||||
dep_cache:
|
dep_cache:
|
||||||
folder: $HOME/.dep_cache
|
folder: $HOME/.dep_cache
|
||||||
reupload_on_changes: false
|
reupload_on_changes: false
|
||||||
fingerprint_script: cmake -E sha512sum dependencies/CMakeLists.txt
|
fingerprint_script: cat dependencies/CMakeLists.txt
|
||||||
setup_script:
|
setup_script:
|
||||||
- pkg update -f
|
- pkg update -f
|
||||||
- pkg install bash
|
- pkg install bash
|
||||||
|
|
|
@ -26,6 +26,12 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
C:\ProgramData\scoop
|
C:\ProgramData\scoop
|
||||||
key: scoop32 # static key: should be good forever
|
key: scoop32 # static key: should be good forever
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: dependencies/.cache
|
||||||
|
key: ${{ hashFiles('dependencies/CMakeLists.txt') }}
|
||||||
|
|
||||||
- name: Setup Windows # This should almost never run if the cache works.
|
- name: Setup Windows # This should almost never run if the cache works.
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
|
@ -26,6 +26,12 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
C:\ProgramData\scoop
|
C:\ProgramData\scoop
|
||||||
key: scoop64 # static key: should be good forever
|
key: scoop64 # static key: should be good forever
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: dependencies/.cache
|
||||||
|
key: ${{ hashFiles('dependencies/CMakeLists.txt') }}
|
||||||
|
|
||||||
- name: Setup Windows # This should almost never run if the cache works.
|
- name: Setup Windows # This should almost never run if the cache works.
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
Loading…
Reference in New Issue