@@ -19,45 +19,52 @@ jobs:
1919 CXX : ' clang++'
2020 TYPE : Debug
2121 steps :
22- - name : Generate build directory
23- run : mkdir -p build
24- - name : Configure
25- working-directory : build
26- env :
27- CXX : ${{ matrix.CXX }}
28- CXXFLAGS : " -Wall"
29- MPI : ${{ contains(matrix.CONFIG, 'MPI') }}
30- PETSc : ${{ contains(matrix.CONFIG, 'PETSc') }}
31- run : |
32- cmake --version
33- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${{ matrix.TYPE }} -DPRECICE_MPICommunication=${{ env.MPI }} -DPRECICE_PETScMapping=${{ env.PETSc }} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
34- - uses : actions/upload-artifact@v2
35- if : failure()
36- with :
37- name : ${{ format('{0} {1} {2}', matrix.CXX, matrix.CONFIG, matrix.TYPE) }} CMakeCache
38- path : build/CMakeCache.txt
39- - uses : actions/upload-artifact@v2
40- if : failure()
41- with :
42- name : ${{ format('{0} {1} {2}', matrix.CXX, matrix.CONFIG, matrix.TYPE) }} CMakeLogs
43- path : ' build/CMakeFiles/*.log'
44- - uses : actions/upload-artifact@v2
45- if : failure()
46- with :
47- name : ${{ format('{0} {1} {2}', matrix.CXX, matrix.CONFIG, matrix.TYPE) }} CompileCommands
48- path : build/compile_commands.json
49- - name : Compile
50- working-directory : build
51- run : |
52- make -j $(sysctl -n hw.ncpu)
53- - uses : actions/upload-artifact@v2
54- if : failure()
55- with :
56- name : ${{ format('{0} {1} {2}', matrix.CXX, matrix.CONFIG, matrix.TYPE) }} TestOutput
57- path : build/TestOutput/
58- - name : Install & upgrade pip3
59- run : python -m ensurepip --upgrade
60- - name : Run pip install
61- run : pip3 install --user .
62- - name : Run pip install
63- run : python3 -c "import precice"
22+ - name : Check out preCICE
23+ uses : actions/checkout@v3
24+ with :
25+ name : precice/precice
26+ ref : ' master'
27+ - name : Generate build directory
28+ run : |
29+ ls -lah
30+ mkdir -p precice/build
31+ - name : Configure
32+ working-directory : precice/build
33+ env :
34+ CXX : ${{ matrix.CXX }}
35+ CXXFLAGS : " -Wall"
36+ MPI : ${{ contains(matrix.CONFIG, 'MPI') }}
37+ PETSc : ${{ contains(matrix.CONFIG, 'PETSc') }}
38+ run : |
39+ cmake --version
40+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${{ matrix.TYPE }} -DPRECICE_MPICommunication=${{ env.MPI }} -DPRECICE_PETScMapping=${{ env.PETSc }} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
41+ - uses : actions/upload-artifact@v2
42+ if : failure()
43+ with :
44+ name : ${{ format('{0} {1} {2}', matrix.CXX, matrix.CONFIG, matrix.TYPE) }} CMakeCache
45+ path : precice/build/CMakeCache.txt
46+ - uses : actions/upload-artifact@v2
47+ if : failure()
48+ with :
49+ name : ${{ format('{0} {1} {2}', matrix.CXX, matrix.CONFIG, matrix.TYPE) }} CMakeLogs
50+ path : ' precice/build/CMakeFiles/*.log'
51+ - uses : actions/upload-artifact@v2
52+ if : failure()
53+ with :
54+ name : ${{ format('{0} {1} {2}', matrix.CXX, matrix.CONFIG, matrix.TYPE) }} CompileCommands
55+ path : precice/build/compile_commands.json
56+ - name : Compile
57+ working-directory : build
58+ run : |
59+ make -j $(sysctl -n hw.ncpu)
60+ - uses : actions/upload-artifact@v2
61+ if : failure()
62+ with :
63+ name : ${{ format('{0} {1} {2}', matrix.CXX, matrix.CONFIG, matrix.TYPE) }} TestOutput
64+ path : precice/build/TestOutput/
65+ - name : Install & upgrade pip3
66+ run : python -m ensurepip --upgrade
67+ - name : Run pip install
68+ run : pip3 install --user .
69+ - name : Run pip install
70+ run : python3 -c "import precice"
0 commit comments