mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
docs: Conan data caching added
This commit is contained in:
13
.github/workflows/conan-ci.yml
vendored
13
.github/workflows/conan-ci.yml
vendored
@@ -63,6 +63,17 @@ jobs:
|
||||
CXX: g++-10
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Cache Conan data
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-conan-data
|
||||
with:
|
||||
path: ~/.conan/data
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/metadata.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
@@ -81,7 +92,7 @@ jobs:
|
||||
- name: Install Conan dependencies
|
||||
run: |
|
||||
mkdir build && cd build
|
||||
conan install .. -s compiler.cppstd=20 -e mp-units:CONAN_RUN_TESTS=True
|
||||
conan install .. -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 -e mp-units:CONAN_RUN_TESTS=True -b outdated -u
|
||||
- name: Generate documentation
|
||||
run: |
|
||||
cmake ..
|
||||
|
Reference in New Issue
Block a user