Skip to content

Commit 53dfd4b

Browse files
Update ci.yml
1 parent 0ec1a9b commit 53dfd4b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,16 @@ jobs:
4747
cmake --preset=production # Configure using the production preset
4848
cd build
4949
make -j 10
50-
50+
precice_DIR=$(pwd)
51+
52+
5153
- name: "Run for ${{ matrix.os }}"
5254
shell: bash
53-
working-directory: ${{runner.workspace}}
54-
run: ctest -S ${{ github.event.repository.name }}/gismo/cmake/ctest_script.cmake -D CTEST_BUILD_NAME="${{ github.event.repository.name }}_actions_$GITHUB_RUN_NUMBER" -D CTEST_SITE="${{ matrix.os }}_[actions]" -D CMAKE_ARGS="-DCMAKE_BUILD_TYPE=$BUILD_TYPE;-DCMAKE_CXX_STANDARD=11;-DGISMO_WITH_XDEBUG=ON;-DGISMO_BUILD_UNITTESTS=ON" -D GISMO_OPTIONAL="${{ github.event.repository.name }}" -Q
55+
working-directory: ${{ runner.workspace }}
56+
run: |
57+
# Use the precice_DIR set from the environment variable
58+
ctest -S ${{ github.event.repository.name }}/gismo/cmake/ctest_script.cmake \
59+
-D CTEST_BUILD_NAME="${{ github.event.repository.name }}_actions_$GITHUB_RUN_NUMBER" \
60+
-D CTEST_SITE="${{ matrix.os }}_[actions]" \
61+
-D CMAKE_ARGS="-DCMAKE_BUILD_TYPE=$BUILD_TYPE;-DCMAKE_CXX_STANDARD=11;-DGISMO_WITH_XDEBUG=ON;-DGISMO_BUILD_UNITTESTS=ON;-Dprecice_DIR=$precice_DIR" \
62+
-D GISMO_OPTIONAL="${{ github.event.repository.name }}" -Q

0 commit comments

Comments
 (0)