mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-06 00:41:01 +02:00
merge envs
This commit is contained in:
parent
bc87a4d311
commit
0f073a9065
7 changed files with 13 additions and 16 deletions
5
.github/workflows/install.yml
vendored
5
.github/workflows/install.yml
vendored
|
@ -10,6 +10,7 @@ on:
|
|||
|
||||
env:
|
||||
CTEST_OUTPUT_ON_FAILURE: 1
|
||||
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -24,16 +25,12 @@ jobs:
|
|||
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
|
||||
|
||||
- name: build and install library
|
||||
env:
|
||||
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
|
||||
run: |
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue