mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
ci: Ninja apt package installed and set as a default CMake generator
This commit is contained in:
8
.github/workflows/ci-test-package-cmake.yml
vendored
8
.github/workflows/ci-test-package-cmake.yml
vendored
@@ -37,6 +37,7 @@ on:
|
||||
env:
|
||||
CC: gcc-10
|
||||
CXX: g++-10
|
||||
CMAKE_GENERATOR: Ninja
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
@@ -55,6 +56,9 @@ jobs:
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Install Ninja
|
||||
run: |
|
||||
sudo apt install -y ninja-build
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
@@ -83,7 +87,7 @@ jobs:
|
||||
- name: Configure CMake
|
||||
run: |
|
||||
cd build/${{ matrix.build_type }}
|
||||
cmake ../../src -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_TOOLCHAIN_FILE=conan_paths.cmake
|
||||
cmake ../../src -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_TOOLCHAIN_FILE=conan_paths.cmake
|
||||
- name: Install
|
||||
run: |
|
||||
cd build/${{ matrix.build_type }}
|
||||
@@ -101,7 +105,7 @@ jobs:
|
||||
- name: Configure CMake
|
||||
run: |
|
||||
mkdir -p test_package/build/${{ matrix.build_type }} && cd test_package/build/${{ matrix.build_type }}
|
||||
cmake ../.. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=../../../build/${{ matrix.build_type }}/test_package -DCMAKE_TOOLCHAIN_FILE=../../../build/${{ matrix.build_type }}/conan_paths.cmake
|
||||
cmake ../.. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=../../../build/${{ matrix.build_type }}/test_package -DCMAKE_TOOLCHAIN_FILE=../../../build/${{ matrix.build_type }}/conan_paths.cmake
|
||||
- name: Build
|
||||
run: |
|
||||
cd test_package/build/${{ matrix.build_type }}
|
||||
|
13
.github/workflows/documentation.yml
vendored
13
.github/workflows/documentation.yml
vendored
@@ -36,13 +36,15 @@ on:
|
||||
- 'src/**'
|
||||
- 'example/**'
|
||||
|
||||
env:
|
||||
CC: gcc-10
|
||||
CXX: g++-10
|
||||
CMAKE_GENERATOR: Ninja
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
name: Sphinx
|
||||
runs-on: ubuntu-20.04
|
||||
env:
|
||||
CC: gcc-10
|
||||
CXX: g++-10
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Cache Conan data
|
||||
@@ -56,6 +58,9 @@ jobs:
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Install Ninja
|
||||
run: |
|
||||
sudo apt install -y ninja-build
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
@@ -78,7 +83,7 @@ jobs:
|
||||
- name: Configure CMake
|
||||
run: |
|
||||
cd build
|
||||
cmake .. -G Ninja
|
||||
cmake ..
|
||||
- name: Generate documentation
|
||||
run: |
|
||||
cd build
|
||||
|
Reference in New Issue
Block a user