1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

Merge envs in workflows (#74)

* also use cache in install test

* merge envs
This commit is contained in:
Lars Melchior 2021-01-21 10:16:01 +01:00 committed by GitHub
parent db49d07ca1
commit b58e0717f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 15 deletions

View file

@ -10,6 +10,7 @@ on:
env:
CTEST_OUTPUT_ON_FAILURE: 1
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
jobs:
build:
@ -25,13 +26,11 @@ jobs:
- name: build and install library
run: |
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
sudo cmake --build build --target install
rm -rf build
- name: configure
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
run: cmake -Stest -Bbuild -DTEST_INSTALLED_VERSION=1
- name: build