|
1 | 1 | name: build-clang |
2 | | -on: |
3 | | - push: |
4 | | - branches: |
5 | | - - latest |
6 | | - - master |
7 | | - pull_request: |
8 | | - types: [opened, synchronize, reopened] |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
9 | 5 | jobs: |
10 | 6 | debug: |
11 | | - runs-on: ubuntu-latest |
| 7 | + runs-on: ${{ matrix.os }} |
| 8 | + strategy: |
| 9 | + matrix: |
| 10 | + os: [ubuntu-latest] |
| 11 | + |
12 | 12 | steps: |
13 | 13 | - uses: actions/checkout@v4 |
14 | | - - run: | |
15 | | - cmake -E make_directory ${{runner.workspace}}/build |
16 | | - cd build |
17 | | - cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DFAST_BUILD=OFF |
| 14 | + |
| 15 | + - name: Create Build Environment |
| 16 | + run: cmake -E make_directory ${{runner.workspace}}/build |
| 17 | + |
| 18 | + - name: Configure CMake |
| 19 | + shell: bash |
| 20 | + working-directory: ${{runner.workspace}}/build |
| 21 | + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DFAST_BUILD=OFF |
| 22 | + |
| 23 | + - name: Build |
| 24 | + working-directory: ${{runner.workspace}}/build |
| 25 | + shell: bash |
| 26 | + # Execute the build. You can specify a specific target with "--target <NAME>" |
| 27 | + run: | |
18 | 28 | export CC=clang |
19 | 29 | export CC=clang++ |
20 | 30 | cmake --build . --parallel --config Debug |
21 | | - ctest --parallel --timeout 300 --output-on-failure |
| 31 | +
|
| 32 | + - name: Test |
| 33 | + working-directory: ${{runner.workspace}}/build |
| 34 | + shell: bash |
| 35 | + # Execute tests defined by the CMake configuration. |
| 36 | + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail |
| 37 | + run: ctest --parallel --timeout 300 --output-on-failure |
| 38 | + |
22 | 39 | release: |
23 | 40 | runs-on: ${{ matrix.os }} |
24 | 41 | strategy: |
|
83 | 100 | shell: bash |
84 | 101 | # Execute tests defined by the CMake configuration. |
85 | 102 | # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail |
86 | | - run: ctest --parallel --timeout 300 --output-on-failure |
| 103 | + run: ctest --parallel --timeout 300 --output-on-failure |
87 | 104 |
|
88 | 105 | release64: |
89 | 106 | runs-on: ${{ matrix.os }} |
|
0 commit comments