Build MPLR with IntelMPI #37
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: build-with-IntelMPI | |
| run-name: Build MPLR with IntelMPI | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| compile-mplr: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt install cmake ninja-build g++ libboost-test-dev | |
| wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null | |
| echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list | |
| sudo apt update | |
| sudo apt install intel-oneapi-mpi-devel | |
| - name: Build mplr | |
| run: | | |
| mkdir build | |
| cd build | |
| . /opt/intel/oneapi/setvars.sh | |
| cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DMPLR_BUILD_EXAMPLES=ON .. | |
| cmake -G Ninja -DCMAKE_INSTALL_PREFIX="$HOME/mplr" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DMPLR_BUILD_EXAMPLES=ON .. | |
| cmake --build . -j | |
| cmake --build . --target install | |
| - name: Test mplr | |
| run: | | |
| cd build | |
| . /opt/intel/oneapi/setvars.sh | |
| ctest --output-on-failure | |
| - run: echo "This job's status is ${{ job.status }}." |