mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-03 23:50:53 +02:00
cache CPM.cmake dependencies
This commit is contained in:
parent
cc810d0ea2
commit
e8d386c823
7 changed files with 102 additions and 67 deletions
35
.github/workflows/install.yml
vendored
35
.github/workflows/install.yml
vendored
|
@ -17,21 +17,26 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: build and install library
|
||||
run: |
|
||||
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
|
||||
sudo cmake --build build --target install
|
||||
rm -rf build
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: configure
|
||||
run: cmake -Htest -Bbuild -DTEST_INSTALLED_VERSION=1
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: '**/cpm_modules'
|
||||
key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
|
||||
|
||||
- name: build
|
||||
run: cmake --build build --config Debug -j4
|
||||
- name: build and install library
|
||||
run: |
|
||||
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
|
||||
sudo cmake --build build --target install
|
||||
rm -rf build
|
||||
|
||||
- name: test
|
||||
run: |
|
||||
cd build
|
||||
ctest --build-config Debug
|
||||
- name: configure
|
||||
run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DTEST_INSTALLED_VERSION=1
|
||||
|
||||
- name: build
|
||||
run: cmake --build build --config Debug -j4
|
||||
|
||||
- name: test
|
||||
run: |
|
||||
cd build
|
||||
ctest --build-config Debug
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue