mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
use env for all workflows
This commit is contained in:
parent
3a1747d772
commit
9733007236
6 changed files with 15 additions and 5 deletions
2
.github/workflows/documentation.yaml
vendored
2
.github/workflows/documentation.yaml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
run: |
|
||||
cmake -Sdocumentation -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules
|
||||
cmake -Sdocumentation -Bbuild
|
||||
cmake --build build --target GenerateDocs
|
||||
|
||||
- name: Publish
|
||||
|
|
4
.github/workflows/install.yml
vendored
4
.github/workflows/install.yml
vendored
|
@ -31,7 +31,9 @@ jobs:
|
|||
rm -rf build
|
||||
|
||||
- name: configure
|
||||
run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DTEST_INSTALLED_VERSION=1
|
||||
env:
|
||||
CPM_SOURCE_CACHE: ${{ env.GITHUB_WORKSPACE }}/cpm_modules
|
||||
run: cmake -Stest -Bbuild -DTEST_INSTALLED_VERSION=1
|
||||
|
||||
- name: build
|
||||
run: cmake --build build --config Debug -j4
|
||||
|
|
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
|
@ -25,7 +25,9 @@ jobs:
|
|||
key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
|
||||
|
||||
- name: configure
|
||||
run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DCMAKE_BUILD_TYPE=Debug
|
||||
env:
|
||||
CPM_SOURCE_CACHE: ${{ env.GITHUB_WORKSPACE }}/cpm_modules
|
||||
run: cmake -Stest -Bbuild -DCMAKE_BUILD_TYPE=Debug
|
||||
|
||||
- name: build
|
||||
run: cmake --build build -j4
|
||||
|
|
2
.github/workflows/standalone.yml
vendored
2
.github/workflows/standalone.yml
vendored
|
@ -22,6 +22,8 @@ jobs:
|
|||
key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
|
||||
|
||||
- name: configure
|
||||
env:
|
||||
CPM_SOURCE_CACHE: ${{ env.GITHUB_WORKSPACE }}/cpm_modules
|
||||
run: cmake -Sstandalone -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=Debug
|
||||
|
||||
- name: build
|
||||
|
|
4
.github/workflows/style.yml
vendored
4
.github/workflows/style.yml
vendored
|
@ -27,7 +27,9 @@ jobs:
|
|||
pip3 install cmake_format==0.6.11 pyyaml
|
||||
|
||||
- name: configure
|
||||
run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules
|
||||
env:
|
||||
CPM_SOURCE_CACHE: ${{ env.GITHUB_WORKSPACE }}/cpm_modules
|
||||
run: cmake -Stest -Bbuild
|
||||
|
||||
- name: check style
|
||||
run: cmake --build build --target check-format
|
||||
|
|
4
.github/workflows/ubuntu.yml
vendored
4
.github/workflows/ubuntu.yml
vendored
|
@ -26,7 +26,9 @@ jobs:
|
|||
key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
|
||||
|
||||
- name: configure
|
||||
run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug
|
||||
env:
|
||||
CPM_SOURCE_CACHE: ${{ env.GITHUB_WORKSPACE }}/cpm_modules
|
||||
run: cmake -Stest -Bbuild -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug
|
||||
|
||||
- name: build
|
||||
run: cmake --build build -j4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue