|
52 | 52 | # Necessary such that libtrixi will not use its own default for the depot path |
53 | 53 | JULIA_DEPOT_PATH: ~/.julia |
54 | 54 | # This seems to fix some stalling C tests |
55 | | - # JULIA_NUM_THREADS: 1 |
| 55 | + JULIA_NUM_THREADS: 1 |
56 | 56 | steps: |
57 | 57 | - name: Checkout repository |
58 | 58 | uses: actions/checkout@v6 |
@@ -117,25 +117,30 @@ jobs: |
117 | 117 |
|
118 | 118 | - name: Configure (test_type == 'regular') |
119 | 119 | if: ${{ matrix.test_type == 'regular' }} |
120 | | - # remove -Wno-error=unused-parameter once https://github.com/JuliaLang/julia/pull/57681 is in the release |
| 120 | + # remove once https://github.com/JuliaLang/julia/pull/57681 is in the release |
| 121 | + with: |
| 122 | + c_flags: ${{ matrix.julia_version == '1.12' && '-Wno-error=unused-parameter' || '' }} |
121 | 123 | run: | |
122 | 124 | mkdir build |
123 | 125 | cd build |
124 | 126 | cmake .. -DCMAKE_INSTALL_PREFIX=../install \ |
125 | 127 | -DCMAKE_BUILD_TYPE=Release \ |
126 | | - -DCMAKE_C_FLAGS="-Wno-error=unused-parameter" \ |
| 128 | + -DCMAKE_C_FLAGS="${INPUT_C_FLAGS}" \ |
127 | 129 | -DT8CODE_ROOT=$PWD/../t8code-local/prefix \ |
128 | 130 | -DENABLE_TESTING=ON -DJULIA_PROJECT_PATH=../libtrixi-julia |
129 | 131 |
|
130 | 132 | - name: Configure (test_type == 'coverage') |
131 | 133 | if: ${{ matrix.test_type == 'coverage' }} |
| 134 | + # remove once https://github.com/JuliaLang/julia/pull/57681 is in the release |
| 135 | + with: |
| 136 | + c_flags: ${{ matrix.julia_version == '1.12' && '-Wno-error=unused-parameter' || '' }} |
132 | 137 | run: | |
133 | 138 | mkdir build |
134 | 139 | cd build |
135 | 140 | cmake .. -DCMAKE_INSTALL_PREFIX=../install \ |
136 | 141 | -DCMAKE_BUILD_TYPE=Debug \ |
137 | 142 | -DT8CODE_ROOT=$PWD/../t8code-local/prefix \ |
138 | | - -DCMAKE_C_FLAGS="-cpp --coverage -O0 -Wno-error=unused-parameter" \ |
| 143 | + -DCMAKE_C_FLAGS="-cpp --coverage -O0 ${INPUT_C_FLAGS}" \ |
139 | 144 | -DCMAKE_Fortran_FLAGS="-cpp --coverage -O0" \ |
140 | 145 | -DCMAKE_EXE_LINKER_FLAGS="--coverage" \ |
141 | 146 | -DCMAKE_SHARED_LINKER_FLAGS="--coverage" \ |
@@ -210,7 +215,7 @@ jobs: |
210 | 215 | if: ${{ matrix.test_type == 'package-compiler' }} |
211 | 216 | run: | |
212 | 217 | cd build |
213 | | - make -j2 |
| 218 | + make |
214 | 219 | du -hL ./prefix-pc/lib/libtrixi.so |
215 | 220 |
|
216 | 221 | - name: Test external CMake project |
|
0 commit comments