Skip to content

Commit efe7140

Browse files
author
Christos Konstantinos Matzoros
committed
Reuse or remove steps in the pipeline
1 parent 1def13f commit efe7140

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ on:
99

1010
jobs:
1111
# -------------------------------------------------
12-
# 1. MULTI-CONFIGURATION BUILD TESTS
12+
# 1. QUICK BUILD TESTS (Debug + Release)
1313
# -------------------------------------------------
1414
build_matrix:
1515
name: Build (${{ matrix.build_type }})
1616
runs-on: ubuntu-latest
1717
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'
1818
strategy:
1919
matrix:
20-
build_type: [Debug, RelWithDebInfo, Release, RelWithDebInfo-noEigen]
20+
build_type: [Debug, Release]
2121

2222
steps:
2323
- uses: actions/checkout@v3
2424

2525
- name: Install dependencies
26-
if: matrix.build_type != 'RelWithDebInfo-noEigen'
2726
run: |
2827
sudo apt-get update
2928
sudo apt-get install -y --no-install-recommends \
@@ -32,30 +31,15 @@ jobs:
3231
pip3 install --upgrade pip
3332
pip3 install cmake==3.21.3
3433
35-
- name: Install dependencies (no Eigen)
36-
if: matrix.build_type == 'RelWithDebInfo-noEigen'
37-
run: |
38-
sudo apt-get update
39-
sudo apt-get install -y --no-install-recommends \
40-
make gcc g++ git libboost-all-dev \
41-
doxygen graphviz python3-pip
42-
pip3 install --upgrade pip
43-
pip3 install cmake==3.21.3
44-
4534
- name: Configure (${{ matrix.build_type }})
46-
run: |
47-
if [ "${{ matrix.build_type }}" = "RelWithDebInfo-noEigen" ]; then
48-
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
49-
else
50-
cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
51-
fi
35+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
5236

5337
- name: Build (${{ matrix.build_type }})
5438
working-directory: ${{ github.workspace }}/build
5539
run: cmake --build . -j$(nproc)
5640

5741
# -------------------------------------------------
58-
# 2. FULL BUILD + TEST + SIMPLE DAG RUN (with Eigen)
42+
# 2. FULL BUILD + TEST + SIMPLE DAG RUN (RelWithDebInfo + Eigen)
5943
# -------------------------------------------------
6044
test_and_run:
6145
name: Build & Test (RelWithDebInfo + Eigen)
@@ -104,10 +88,10 @@ jobs:
10488
--GreedyChildrenKL --GrowLocalKL --GreedyBspHC --FunnelLocking
10589
10690
# -------------------------------------------------
107-
# 3. FULL BUILD + TEST (NO EIGEN)
91+
# 3. FULL BUILD + TEST (RelWithDebInfo-noEigen)
10892
# -------------------------------------------------
10993
test_no_eigen:
110-
name: Build & Test (RelWithDebInfo, no Eigen)
94+
name: Build & Test (RelWithDebInfo-noEigen)
11195
runs-on: ubuntu-latest
11296
needs: build_matrix
11397
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)