|
25 | 25 | - { os: ubuntu-latest, compiler: gcc, version: 12 } |
26 | 26 | - { os: ubuntu-latest, compiler: gcc, version: 13 } |
27 | 27 | - { os: ubuntu-24.04, compiler: gcc, version: 14, module: true } |
28 | | - #- { os: ubuntu-24.04, compiler: gcc, version: 15, module: true } |
29 | 28 |
|
30 | 29 | - { os: ubuntu-22.04, compiler: clang, version: 13 } |
31 | 30 | - { os: ubuntu-22.04, compiler: clang ,version: 14 } |
|
88 | 87 | run: | |
89 | 88 | cmake --build build --config Release --target run-test |
90 | 89 |
|
| 90 | + container: |
| 91 | + runs-on: ubuntu-latest |
| 92 | + container: ${{ matrix.container }} |
| 93 | + strategy: |
| 94 | + fail-fast: false |
| 95 | + matrix: |
| 96 | + include: |
| 97 | + - {container: gcc:15.1, module: true} |
| 98 | + |
| 99 | + steps: |
| 100 | + - name: Checkout |
| 101 | + uses: actions/checkout@v4 |
| 102 | + |
| 103 | + - name: System Setup |
| 104 | + shell: bash |
| 105 | + run: | |
| 106 | + apt-get update |
| 107 | + apt-get install -y python3-dev |
| 108 | +
|
| 109 | + export CMAKE_VERSION=3.28.6 |
| 110 | + wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh \ |
| 111 | + -q -O /tmp/cmake-install.sh \ |
| 112 | + && chmod u+x /tmp/cmake-install.sh \ |
| 113 | + && /tmp/cmake-install.sh --skip-license --prefix=/usr \ |
| 114 | + rm -f /tmp/cmake-install.sh |
| 115 | +
|
| 116 | + wget -qO- https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip | \ |
| 117 | + gunzip > /usr/bin/ninja |
| 118 | + chmod a+x /usr/bin/ninja |
| 119 | + echo "CMAKE_GENERATOR=-GNinja" >> $GITHUB_ENV |
| 120 | +
|
| 121 | + if [[ '${{ matrix.module}}' == 'true' ]]; then |
| 122 | + echo "CMAKE_ARGS=-DISPTR_ENABLE_MODULE=ON" >> $GITHUB_ENV |
| 123 | + fi |
| 124 | +
|
| 125 | + - name: Configure |
| 126 | + shell: bash |
| 127 | + run: | |
| 128 | + cmake $CMAKE_GENERATOR -S . -B build $CMAKE_ARGS -DISPTR_ENABLE_PYTHON=ON -DCMAKE_BUILD_TYPE=Release |
| 129 | + |
| 130 | + - name: Build and Test |
| 131 | + shell: bash |
| 132 | + run: | |
| 133 | + cmake --build build --config Release --target run-test |
0 commit comments