adding the command for building pybind11 in the CI #1
Workflow file for this run
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: Merge into master - Run Tests Workflow | ||
| # if statements modified to avoid: https://stackoverflow.com/questions/69354003/github-action-job-fire-when-previous-job-skipped | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| os: | ||
| required: true | ||
| type: string | ||
| arch: | ||
| required: true | ||
| type: string | ||
| permissions: | ||
| contents: read | ||
| env: | ||
| REGISTRY: ghcr.io | ||
| DOCKERIMAGE: ghcr.io/algebraic-programming/taskr/buildenv | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| jobs: | ||
| # Build TaskR and run tests and the remote image | ||
| compile-and-test: | ||
| runs-on: ${{ inputs.os }} | ||
| container: | ||
| image: ghcr.io/algebraic-programming/taskr/buildenv:latest | ||
| options: --user hicr | ||
| credentials: | ||
| username: ${{ github.repository_owner }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: 'true' | ||
| - name: Build Pybind11 | ||
| run: cd extern/pybind11 && mkdir -p build && cd build && cmake .. && make check -j"$(nproc)" && mkdir -p mock_install/share/pkgconfig && echo -e "prefix=$(pwd)/..\nincludedir=\${prefix}/include\n\nName: pybind11\nDescription: Seamless operability between C++11 and Python\nVersion: 2.13.6\nCflags: -I\${includedir}" > mock_install/share/pkgconfig/pybind11.pc && echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(pwd)/mock_install/share/pkgconfig" >> $GITHUB_ENV | ||
| - name: Setup | ||
| run: source /home/hicr/.bashrc && meson setup build -Dbuildtype=debug -Db_coverage=true -DdistributedEngine=mpi -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true -DexecutionStateType=nosv,boost -DprocessingUnitType=nosv,pthreads -DbuildPyTaskR=true | ||
| - name: Compile | ||
| run: source /home/hicr/.bashrc && meson compile -C build | ||
| - name: Running tests and creating coverage report | ||
| shell: bash | ||
| run: | | ||
| echo "Running Tests..." | ||
| source /home/hicr/.bashrc | ||
| meson test -C build | ||
| echo "Creating coverage report..." | ||
| ninja -C build coverage | ||
| - uses: actions/upload-artifact@v4 | ||
| if: always() | ||
| with: | ||
| name: meson-logs-${{ inputs.arch }} | ||
| path: build/meson-logs/ | ||