make sure we set the random seed for dummy_vis for consistent test re… #73
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: CMake on ubuntu-22.04 | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| BUILD_TYPE: RelWithDebInfo | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: InstallHOPS4Deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake cmake-curses-gui python3-dev python3-pip wget jq | |
| - name: InstallHOPS3Deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libfftw3-dev pgplot5 libgfortran5 libx11-dev gnuplot binutils libxpm-dev ghostscript ghostscript-x | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DHOPS_PYPI_MANAGE_DEPS=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 6 | |
| - name: Install | |
| run: cmake --install ${{github.workspace}}/build | |
| - name: TestDataDownload | |
| run: bash ${{github.workspace}}/install/bin/testdata_download_all.sh | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build | |
| run: ctest -C ${{env.BUILD_TYPE}} |