More type fixes #102
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: OSP CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| types: [opened, closed, reopened, synchronize, ready_for_review] | |
| jobs: | |
| # ------------------------------------------------- | |
| # 1. QUICK BUILD TESTS (Debug + Release) | |
| # ------------------------------------------------- | |
| build_matrix: | |
| name: Build (${{ matrix.build_type }}) | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master' | |
| strategy: | |
| matrix: | |
| build_type: [Debug, Release] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| make gcc g++ git libboost-all-dev \ | |
| doxygen graphviz python3-pip libeigen3-dev | |
| pip3 install --upgrade pip | |
| pip3 install cmake==3.21.3 | |
| - name: Configure (${{ matrix.build_type }}) | |
| run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
| - name: Build (${{ matrix.build_type }}) | |
| working-directory: ${{ github.workspace }}/build | |
| run: cmake --build . -j$(nproc) | |
| # ------------------------------------------------- | |
| # 2. FULL BUILD + TEST + SIMPLE DAG RUN + DOCS (RelWithDebInfo + Eigen) | |
| # ------------------------------------------------- | |
| test_and_run: | |
| name: Build & Test (RelWithDebInfo + Eigen) | |
| runs-on: ubuntu-latest | |
| needs: build_matrix | |
| if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master' | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| make gcc g++ git libboost-all-dev \ | |
| doxygen graphviz python3-pip libeigen3-dev | |
| pip3 install --upgrade pip | |
| pip3 install cmake==3.21.3 | |
| - name: Configure | |
| run: cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON | |
| - name: Build all targets | |
| working-directory: ${{ github.workspace }}/build | |
| run: cmake --build . -j$(nproc) | |
| - name: Run tests | |
| working-directory: ${{ github.workspace }}/build | |
| run: ctest --output-on-failure --output-junit test_results.xml | |
| continue-on-error: true | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: build/test_results.xml | |
| - name: Run osp example | |
| working-directory: ${{ github.workspace }}/build | |
| run: | | |
| ./apps/osp \ | |
| --inputDag ../data/spaa/tiny/instance_bicgstab.hdag \ | |
| --inputMachine ../data/machine_params/p3.arch \ | |
| --Serial --GreedyBsp --BspLocking --GrowLocal --Variance --Cilk \ | |
| --Etf --GreedyChildren --MultiHC --SarkarLockingHC \ | |
| --GreedyChildrenKL --GrowLocalKL --GreedyBspHC --FunnelLocking | |
| - name: Build documentation | |
| run: | | |
| cmake --build build --target doc | |
| mkdir -p public | |
| cp -r doc/html/* public | |
| - name: Upload docs artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: docs | |
| path: public | |
| # ------------------------------------------------- | |
| # 3. FULL BUILD + TEST (RelWithDebInfo-noEigen) | |
| # ------------------------------------------------- | |
| test_no_eigen: | |
| name: Build & Test (RelWithDebInfo-noEigen) | |
| runs-on: ubuntu-latest | |
| needs: build_matrix | |
| if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master' | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| make gcc g++ git libboost-all-dev \ | |
| doxygen graphviz python3-pip | |
| pip3 install --upgrade pip | |
| pip3 install cmake==3.21.3 | |
| - name: Configure | |
| run: cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON | |
| - name: Build all targets | |
| working-directory: ${{ github.workspace }}/build | |
| run: cmake --build . -j$(nproc) | |
| - name: Run tests | |
| working-directory: ${{ github.workspace }}/build | |
| run: ctest --output-on-failure --output-junit test_results_no_eigen.xml | |
| continue-on-error: true | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-no-eigen | |
| path: build/test_results_no_eigen.xml | |
| - name: Run osp example | |
| working-directory: ${{ github.workspace }}/build | |
| run: | | |
| ./apps/osp \ | |
| --inputDag ../data/spaa/tiny/instance_bicgstab.hdag \ | |
| --inputMachine ../data/machine_params/p3.arch \ | |
| --Serial --GreedyBsp --BspLocking --GrowLocal --Variance --Cilk \ | |
| --Etf --GreedyChildren --MultiHC --SarkarLockingHC \ | |
| --GreedyChildrenKL --GrowLocalKL --GreedyBspHC --FunnelLocking |