fix yaml syntax #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI with TFEL and CUDA support on Ubuntu | ||
| on: | ||
| push: | ||
| branches: [ "master" ] | ||
| pull_request: | ||
| branches: [ "master" ] | ||
| env: | ||
| # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
| BUILD_TYPE: Release | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Install CUDA | ||
| uses: Jimver/cuda-toolkit@v0.2.36 | ||
| with: | ||
| id: cuda-toolkit | ||
| run: | | ||
| echo "Installed cuda version is: ${{steps.cuda-toolkit.outputs.cuda}}" | ||
| echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}" | ||
| - name: Checkout TFEL | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| repository: thelfer/tfel | ||
| path: tfel | ||
| - name: Checkout MGIS | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| path: mgis | ||
| - name: Install TFEL | ||
| run: | | ||
| cmake ${{github.workspace}}/tfel \ | ||
| -B ${{github.workspace}}/build-tfel \ | ||
| -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | ||
| -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install-tfel | ||
| cmake --build ${{github.workspace}}/build-tfel --target all -j $(nproc) | ||
| cmake --build ${{github.workspace}}/build-tfel --target install | ||
| - name: Configure | ||
| run: | | ||
| source ${{github.workspace}}/install-tfel/share/tfel/env/env.sh | ||
| cmake ${{github.workspace}}/build/mgis \ | ||
| -B ${{github.workspace}}/build \ | ||
| -DCMAKE_BUILD_TYPE=Release \ | ||
| -Denable-c-bindings=ON \ | ||
| -Denable-fortran-bindings=ON \ | ||
| -Denable-python-bindings=OFF \ | ||
| -Denable-portable-build=ON \ | ||
| -Denable-julia-bindings=OFF \ | ||
| -Denable-parallel-stl-algorithms=OFF \ | ||
| -Denable-cuda-algorithms=ON \ | ||
| -DTFEL_DIR=${{github.workspace}}/install-tfel/share/tfel/cmake \ | ||
| -DCMAKE_CUDA_COMPILER=nvcc | ||
| - name: Compile | ||
| run: | | ||
| source ${{github.workspace}}/install-tfel/share/tfel/env/env.sh | ||
| cmake --build ${{github.workspace}}/build --target all -j $(nproc) | ||
| - name: Test | ||
| run: | | ||
| source ${{github.workspace}}/install-tfel/share/tfel/env/env.sh | ||
| cmake --build ${{github.workspace}}/build --target all -j $(nproc) | ||