mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
docs: Ninja installation removed + docs generation fixed
This commit is contained in:
3
.github/workflows/conan-ci.yml
vendored
3
.github/workflows/conan-ci.yml
vendored
@@ -41,9 +41,6 @@ jobs:
|
|||||||
name: ${{ matrix.compiler.name }} ${{ matrix.compiler.version }}
|
name: ${{ matrix.compiler.name }} ${{ matrix.compiler.version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Ninja
|
|
||||||
run: |
|
|
||||||
sudo apt install ninja-build
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
|
13
.github/workflows/documentation.yml
vendored
13
.github/workflows/documentation.yml
vendored
@@ -55,9 +55,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
- name: Install Ninja
|
|
||||||
run: |
|
|
||||||
sudo apt install ninja-build
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -Ur docs/requirements.txt
|
pip install -Ur docs/requirements.txt
|
||||||
@@ -70,16 +67,16 @@ jobs:
|
|||||||
conan remote add upload ${{ secrets.CONAN_UPLOAD }}
|
conan remote add upload ${{ secrets.CONAN_UPLOAD }}
|
||||||
conan remote add linear-algebra https://api.bintray.com/conan/twonington/public-conan
|
conan remote add linear-algebra https://api.bintray.com/conan/twonington/public-conan
|
||||||
- name: Install Conan dependencies
|
- name: Install Conan dependencies
|
||||||
env:
|
|
||||||
CONAN_CMAKE_GENERATOR: Ninja
|
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
conan install .. -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 -e mp-units:CONAN_RUN_TESTS=True -b outdated -u
|
conan install .. -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 -e mp-units:CONAN_RUN_TESTS=True -b outdated -u
|
||||||
|
- name: Configure CMake
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
- name: Generate documentation
|
- name: Generate documentation
|
||||||
run: |
|
run: |
|
||||||
pwd
|
cd build
|
||||||
ls -al
|
|
||||||
cmake .. -G Ninja
|
|
||||||
cmake --build . --target sphinx
|
cmake --build . --target sphinx
|
||||||
- name: Deploy documentation
|
- name: Deploy documentation
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
|
Reference in New Issue
Block a user