1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-06 00:41:01 +02:00

cache CPM.cmake dependencies

This commit is contained in:
Lars Melchior 2021-01-20 18:08:08 +01:00
parent cc810d0ea2
commit e8d386c823
7 changed files with 102 additions and 67 deletions

View file

@ -14,15 +14,20 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Install format dependencies
run: |
brew install clang-format
pip3 install cmake_format==0.6.11 pyyaml
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: '**/cpm_modules'
key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: configure
run: cmake -Htest -Bbuild
- name: Install format dependencies
run: |
brew install clang-format
pip3 install cmake_format==0.6.11 pyyaml
- name: check style
run: cmake --build build --target check-format
- name: configure
run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules
- name: check style
run: cmake --build build --target check-format