Skip to content

Commit fd3f27b

Browse files
author
Christos Konstantinos Matzoros
committed
Fixing runner definition
1 parent bdab193 commit fd3f27b

File tree

1 file changed

+34
-48
lines changed

1 file changed

+34
-48
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ name: OSP CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: ["*"]
66
pull_request:
7-
branches: [ master ]
7+
branches: ["*"]
8+
9+
env:
10+
BUILD_TYPE: Release
811

912
jobs:
1013
build:
11-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1215

1316
steps:
14-
- name: Checkout source
15-
uses: actions/checkout@v4
17+
- uses: actions/checkout@v3
1618

1719
- name: Install dependencies
1820
run: |
@@ -23,19 +25,19 @@ jobs:
2325
pip3 install --upgrade pip
2426
pip3 install cmake==3.21.3
2527
26-
- name: Configure (CMake)
27-
run: cmake -S . -B build
28+
- name: Configure
29+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
2830

2931
- name: Build
30-
run: cmake --build build -j$(nproc)
32+
working-directory: ${{ github.workspace }}/build
33+
run: cmake --build . -j$(nproc)
3134

3235
test:
33-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-latest
3437
needs: build
3538

3639
steps:
37-
- name: Checkout source
38-
uses: actions/checkout@v4
40+
- uses: actions/checkout@v3
3941

4042
- name: Install dependencies
4143
run: |
@@ -46,14 +48,16 @@ jobs:
4648
pip3 install --upgrade pip
4749
pip3 install cmake==3.21.3
4850
49-
- name: Configure (CMake)
50-
run: cmake -S . -B build -DBUILD_TESTS=ON
51+
- name: Configure (with tests)
52+
run: cmake -S . -B build -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
5153

5254
- name: Build tests
53-
run: cmake --build build --target build_tests -j$(nproc)
55+
working-directory: ${{ github.workspace }}/build
56+
run: cmake --build . --target build_tests -j$(nproc)
5457

5558
- name: Run tests
56-
run: cd build && ctest --output-on-failure --output-junit test_results.xml
59+
working-directory: ${{ github.workspace }}/build
60+
run: ctest --output-on-failure --output-junit test_results.xml
5761
continue-on-error: true
5862

5963
- name: Upload test results
@@ -63,44 +67,43 @@ jobs:
6367
path: build/test_results.xml
6468

6569
test_simple_greedy_small_dag:
66-
runs-on: ubuntu-20.04
70+
runs-on: ubuntu-latest
6771
needs: build
6872

6973
steps:
70-
- name: Checkout source
71-
uses: actions/checkout@v4
74+
- uses: actions/checkout@v3
7275

7376
- name: Install dependencies
7477
run: |
7578
sudo apt-get update
7679
sudo apt-get install -y --no-install-recommends \
77-
make gcc g++ git libboost-all-dev \
78-
libeigen3-dev python3-pip
80+
make gcc g++ git libboost-all-dev libeigen3-dev python3-pip
7981
pip3 install cmake==3.21.3
8082
81-
- name: Configure (CMake)
82-
run: cmake -S . -B build
83+
- name: Configure
84+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
8385

8486
- name: Build executables
85-
run: cmake --build build --target OneStopParallel OneStopParallel_Partition -j$(nproc)
87+
working-directory: ${{ github.workspace }}/build
88+
run: cmake --build . --target OneStopParallel OneStopParallel_Partition -j$(nproc)
8689

8790
- name: Run simple DAG test
91+
working-directory: ${{ github.workspace }}/build
8892
run: |
89-
cd build
9093
./apps/osp \
9194
--inputDag ../data/spaa/tiny/instance_bicgstab.hdag \
9295
--inputMachine ../data/machine_params/p3.arch \
93-
--Serial --GreedyBsp --BspLocking --GrowLocal --Variance --Cilk --Etf --GreedyChildren \
94-
--MultiHC --SarkarLockingHC --GreedyChildrenKL --GrowLocalKL --GreedyBspHC --FunnelLocking
96+
--Serial --GreedyBsp --BspLocking --GrowLocal --Variance --Cilk \
97+
--Etf --GreedyChildren --MultiHC --SarkarLockingHC \
98+
--GreedyChildrenKL --GrowLocalKL --GreedyBspHC --FunnelLocking
9599
96100
docs:
97-
runs-on: ubuntu-20.04
101+
runs-on: ubuntu-latest
98102
needs: build
99103
if: github.ref == 'refs/heads/master'
100104

101105
steps:
102-
- name: Checkout source
103-
uses: actions/checkout@v4
106+
- uses: actions/checkout@v3
104107

105108
- name: Install dependencies
106109
run: |
@@ -116,24 +119,7 @@ jobs:
116119
cp -r doc/html/* public
117120
118121
- name: Upload docs artifact
119-
uses: actions/upload-pages-artifact@v3
122+
uses: actions/upload-artifact@v4
120123
with:
124+
name: docs
121125
path: public
122-
123-
deploy:
124-
runs-on: ubuntu-20.04
125-
needs: docs
126-
if: github.ref == 'refs/heads/master'
127-
128-
permissions:
129-
pages: write
130-
id-token: write
131-
132-
environment:
133-
name: github-pages
134-
url: ${{ steps.deployment.outputs.page_url }}
135-
136-
steps:
137-
- name: Deploy to GitHub Pages
138-
id: deployment
139-
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)