-
Notifications
You must be signed in to change notification settings - Fork 1
Create CI yml file #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bdab193
Create main.yml
ChristosMatzoros fd3f27b
Fixing runner definition
b7b93f7
Unifying Runs
dc2f634
Build under all configurations
015f09f
on push
839e17b
Add the no eigen case
c77243e
on push
1d3266a
Initiate docs also on PRs
16122bb
Test docs
75dfe26
Docs only on master
f2fa452
Small corrections
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,178 @@ | ||
| name: OSP CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["*"] | ||
|
|
||
| jobs: | ||
| # ------------------------------------------------- | ||
| # 1. MULTI-CONFIGURATION BUILD TESTS | ||
| # ------------------------------------------------- | ||
| build_matrix: | ||
| name: Build (${{ matrix.build_type }}) | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| build_type: [Debug, RelWithDebInfo, Release, RelWithDebInfo-noEigen] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Install dependencies | ||
| if: matrix.build_type != 'RelWithDebInfo-noEigen' | ||
| 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: Install dependencies (no Eigen) | ||
| if: matrix.build_type == 'RelWithDebInfo-noEigen' | ||
| 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 (${{ matrix.build_type }}) | ||
| run: | | ||
| if [ "${{ matrix.build_type }}" = "RelWithDebInfo-noEigen" ]; then | ||
| cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo | ||
| else | ||
| cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
| fi | ||
|
|
||
| - name: Build (${{ matrix.build_type }}) | ||
| working-directory: ${{ github.workspace }}/build | ||
| run: cmake --build . -j$(nproc) | ||
|
|
||
| # ------------------------------------------------- | ||
| # 2. FULL BUILD + TEST + SIMPLE DAG RUN (with Eigen) | ||
| # ------------------------------------------------- | ||
| test_and_run: | ||
| name: Build & Test (RelWithDebInfo + Eigen) | ||
| runs-on: ubuntu-latest | ||
| needs: build_matrix | ||
|
|
||
| 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 | ||
|
|
||
| # ------------------------------------------------- | ||
| # 3. FULL BUILD + TEST (NO EIGEN) | ||
| # ------------------------------------------------- | ||
| test_no_eigen: | ||
| name: Build & Test (RelWithDebInfo, no Eigen) | ||
| runs-on: ubuntu-latest | ||
| needs: build_matrix | ||
|
|
||
| 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 | ||
|
|
||
| # ------------------------------------------------- | ||
| # 4. BUILD DOCUMENTATION (only on master) | ||
| # ------------------------------------------------- | ||
| docs: | ||
| name: Build Docs | ||
| runs-on: ubuntu-latest | ||
| needs: [test_and_run, test_no_eigen] | ||
| if: 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 \ | ||
| doxygen graphviz libeigen3-dev cmake g++ | ||
|
|
||
| - name: Build docs | ||
| run: | | ||
| cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | ||
| 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 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.