|
1 | 1 | name: CI
|
2 |
| - |
3 | 2 | on:
|
4 | 3 | push:
|
5 | 4 | branches: ["main"]
|
6 | 5 | pull_request:
|
7 | 6 | branches: ["main"]
|
8 |
| - |
9 | 7 | env:
|
10 | 8 | BUILD_TYPE: Release
|
11 |
| - |
12 | 9 | permissions:
|
13 | 10 | contents: read
|
14 | 11 | pages: write
|
15 | 12 | id-token: write
|
16 |
| - |
17 | 13 | jobs:
|
18 |
| - build: |
19 |
| - runs-on: ubuntu-latest |
20 |
| - |
| 14 | + build_matrix: |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + os: [ubuntu-22.04, ubuntu-20.04] |
| 18 | + cxx: [clang++-12, clang++-13, clang++-14, g++-9, g++-10, g++-11, g++-12] |
| 19 | + exclude: |
| 20 | + - os: ubuntu-20.04 |
| 21 | + cxx: clang++-13 |
| 22 | + - os: ubuntu-20.04 |
| 23 | + cxx: clang++-14 |
| 24 | + - os: ubuntu-20.04 |
| 25 | + cxx: g++-11 |
| 26 | + - os: ubuntu-20.04 |
| 27 | + cxx: g++-12 |
| 28 | + runs-on: ${{ matrix.os }} |
| 29 | + env: |
| 30 | + CXX: /usr/bin/${{ matrix.cxx }} |
21 | 31 | steps:
|
22 |
| - - name: Install packages |
23 |
| - run: sudo apt-get install -y doxygen graphviz ninja-build |
24 |
| - |
| 32 | + - name: Install Ninja |
| 33 | + run: sudo apt-get install -y ninja-build |
25 | 34 | - uses: actions/checkout@v3
|
26 |
| - |
27 | 35 | - name: Configure CMake
|
28 |
| - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja -DDOXYGEN_FULL_PATH_NAMES=NO |
29 |
| - |
| 36 | + run: | |
| 37 | + cmake -B ${{github.workspace}}/build \ |
| 38 | + -GNinja \ |
| 39 | + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ |
| 40 | + -DDynamicLoader_BUILD_DOCS=OFF |
30 | 41 | - name: Build
|
31 |
| - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} |
32 |
| - |
| 42 | + run: | |
| 43 | + cmake --build ${{github.workspace}}/build \ |
| 44 | + --config ${{env.BUILD_TYPE}} |
33 | 45 | - name: Test
|
34 | 46 | working-directory: ${{github.workspace}}/build
|
35 | 47 | run: ctest -C ${{env.BUILD_TYPE}}
|
36 |
| - |
37 |
| - - name: Docs |
| 48 | + build_docs: |
| 49 | + runs-on: ubuntu-latest |
| 50 | + steps: |
| 51 | + - name: Install Doxygen |
| 52 | + run: sudo apt-get install -y doxygen graphviz |
| 53 | + - uses: actions/checkout@v3 |
| 54 | + - name: Configure CMake |
| 55 | + run: | |
| 56 | + cmake -B ${{github.workspace}}/build \ |
| 57 | + -DDOXYGEN_FULL_PATH_NAMES=NO |
| 58 | + - name: Build docs |
38 | 59 | env:
|
39 | 60 | url: ${{ steps.deployment.outputs.page_url }}
|
40 |
| - run: cmake --build ${{github.workspace}}/build --target DynamicLoaderDocs |
41 |
| - |
| 61 | + run: | |
| 62 | + cmake --build ${{github.workspace}}/build \ |
| 63 | + --target DynamicLoaderDocs |
42 | 64 | - name: Setup Pages
|
43 | 65 | uses: actions/configure-pages@v2
|
44 |
| - |
45 | 66 | - name: Upload artifact
|
46 | 67 | uses: actions/upload-pages-artifact@v1
|
47 | 68 | with:
|
48 | 69 | path: ${{github.workspace}}/build/docs/html
|
49 |
| - |
50 | 70 | - name: Deploy to GitHub Pages
|
51 | 71 | id: deployment
|
52 | 72 | uses: actions/deploy-pages@v1
|
0 commit comments