Skip to content

Commit 4000022

Browse files
committed
[CI] Dockerize Ubuntu builds
1 parent 71df69c commit 4000022

File tree

1 file changed

+10
-56
lines changed

1 file changed

+10
-56
lines changed

.github/workflows/ubuntu.yml

Lines changed: 10 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
jobs:
55
gcc-build:
66
runs-on: ${{ matrix.os }}
7+
container: ghcr.io/learning-process/ppc-ubuntu:latest
78
strategy:
89
matrix:
910
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
@@ -14,8 +15,6 @@ jobs:
1415
submodules: recursive
1516
- name: Setup environment
1617
run: |
17-
sudo apt-get update
18-
sudo apt-get install --no-install-recommends -y gcc-14 g++-14 ninja-build libmpich-dev libomp-dev valgrind
1918
python3 -m pip install -r requirements.txt
2019
- name: ccache
2120
uses: hendrikmuhs/ccache-action@v1.2
@@ -57,15 +56,14 @@ jobs:
5756
needs:
5857
- gcc-build
5958
runs-on: ${{ matrix.os }}
59+
container: ghcr.io/learning-process/ppc-ubuntu:latest
6060
strategy:
6161
matrix:
6262
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
6363
steps:
6464
- uses: actions/checkout@v4
6565
- name: Setup environment
6666
run: |
67-
sudo apt-get update
68-
sudo apt-get install --no-install-recommends -y gcc-14 g++-14 ninja-build libmpich-dev libomp-dev valgrind
6967
python3 -m pip install -r requirements.txt
7068
- name: Download installed package
7169
uses: actions/download-artifact@v4
@@ -87,15 +85,14 @@ jobs:
8785
needs:
8886
- gcc-test
8987
runs-on: ${{ matrix.os }}
88+
container: ghcr.io/learning-process/ppc-ubuntu:latest
9089
strategy:
9190
matrix:
9291
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
9392
steps:
9493
- uses: actions/checkout@v4
9594
- name: Setup environment
9695
run: |
97-
sudo apt-get update
98-
sudo apt-get install --no-install-recommends -y gcc-14 g++-14 ninja-build libmpich-dev libomp-dev valgrind
9996
python3 -m pip install -r requirements.txt
10097
- name: Download installed package
10198
uses: actions/download-artifact@v4
@@ -111,20 +108,14 @@ jobs:
111108
PPC_NUM_PROC: 1
112109
clang-build:
113110
runs-on: ${{ matrix.os }}
111+
container: ghcr.io/learning-process/ppc-ubuntu:latest
114112
strategy:
115113
matrix:
116114
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
117115
steps:
118116
- uses: actions/checkout@v4
119117
with:
120118
submodules: recursive
121-
- name: Setup environment
122-
run: |
123-
sudo apt-get update
124-
sudo apt-get install --no-install-recommends -y ninja-build libmpich-dev python3-pip valgrind
125-
wget https://apt.llvm.org/llvm.sh
126-
chmod u+x llvm.sh
127-
sudo ./llvm.sh 20 all
128119
- name: ccache
129120
uses: hendrikmuhs/ccache-action@v1.2
130121
with:
@@ -157,18 +148,12 @@ jobs:
157148
needs:
158149
- clang-build
159150
runs-on: ${{ matrix.os }}
151+
container: ghcr.io/learning-process/ppc-ubuntu:latest
160152
strategy:
161153
matrix:
162154
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
163155
steps:
164156
- uses: actions/checkout@v4
165-
- name: Setup environment
166-
run: |
167-
sudo apt-get update
168-
sudo apt-get install --no-install-recommends -y ninja-build libmpich-dev python3-pip valgrind
169-
wget https://apt.llvm.org/llvm.sh
170-
chmod u+x llvm.sh
171-
sudo ./llvm.sh 20 all
172157
- name: Download installed package
173158
uses: actions/download-artifact@v4
174159
with:
@@ -189,18 +174,12 @@ jobs:
189174
needs:
190175
- clang-test
191176
runs-on: ${{ matrix.os }}
177+
container: ghcr.io/learning-process/ppc-ubuntu:latest
192178
strategy:
193179
matrix:
194180
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
195181
steps:
196182
- uses: actions/checkout@v4
197-
- name: Setup environment
198-
run: |
199-
sudo apt-get update
200-
sudo apt-get install --no-install-recommends -y ninja-build libmpich-dev python3-pip valgrind
201-
wget https://apt.llvm.org/llvm.sh
202-
chmod u+x llvm.sh
203-
sudo ./llvm.sh 20 all
204183
- name: Download installed package
205184
uses: actions/download-artifact@v4
206185
with:
@@ -217,21 +196,14 @@ jobs:
217196
needs:
218197
- clang-build
219198
runs-on: ${{ matrix.os }}
199+
container: ghcr.io/learning-process/ppc-ubuntu:latest
220200
strategy:
221201
matrix:
222202
os: ["ubuntu-24.04"]
223203
steps:
224204
- uses: actions/checkout@v4
225205
with:
226206
submodules: recursive
227-
- name: Setup environment
228-
run: |
229-
sudo apt-get update
230-
sudo apt-get install --no-install-recommends -y ninja-build python3-pip \
231-
openmpi-bin openmpi-common libopenmpi-dev
232-
wget https://apt.llvm.org/llvm.sh
233-
chmod u+x llvm.sh
234-
sudo ./llvm.sh 20 all
235207
- name: ccache
236208
uses: hendrikmuhs/ccache-action@v1.2
237209
with:
@@ -266,19 +238,12 @@ jobs:
266238
needs:
267239
- clang-sanitizer-build
268240
runs-on: ${{ matrix.os }}
241+
container: ghcr.io/learning-process/ppc-ubuntu:latest
269242
strategy:
270243
matrix:
271244
os: ["ubuntu-24.04"]
272245
steps:
273246
- uses: actions/checkout@v4
274-
- name: Setup environment
275-
run: |
276-
sudo apt-get update
277-
sudo apt-get install --no-install-recommends -y ninja-build python3-pip valgrind \
278-
openmpi-bin openmpi-common libopenmpi-dev
279-
wget https://apt.llvm.org/llvm.sh
280-
chmod u+x llvm.sh
281-
sudo ./llvm.sh 20 all
282247
- name: Download installed package
283248
uses: actions/download-artifact@v4
284249
with:
@@ -305,19 +270,12 @@ jobs:
305270
needs:
306271
- clang-sanitizer-test
307272
runs-on: ${{ matrix.os }}
273+
container: ghcr.io/learning-process/ppc-ubuntu:latest
308274
strategy:
309275
matrix:
310276
os: ["ubuntu-24.04"]
311277
steps:
312278
- uses: actions/checkout@v4
313-
- name: Setup environment
314-
run: |
315-
sudo apt-get update
316-
sudo apt-get install --no-install-recommends -y ninja-build python3-pip valgrind \
317-
openmpi-bin openmpi-common libopenmpi-dev
318-
wget https://apt.llvm.org/llvm.sh
319-
chmod u+x llvm.sh
320-
sudo ./llvm.sh 20 all
321279
- name: Download installed package
322280
uses: actions/download-artifact@v4
323281
with:
@@ -336,15 +294,11 @@ jobs:
336294
- gcc-test-extended
337295
- clang-test-extended
338296
runs-on: ubuntu-24.04
297+
container: ghcr.io/learning-process/ppc-ubuntu:latest
339298
steps:
340299
- uses: actions/checkout@v4
341300
with:
342301
submodules: recursive
343-
- name: Setup environment
344-
run: |
345-
sudo apt-get update
346-
sudo apt-get install --no-install-recommends -y \
347-
gcc-14 g++-14 ninja-build libmpich-dev libomp-dev valgrind gcovr
348302
- name: ccache
349303
uses: hendrikmuhs/ccache-action@v1.2
350304
with:

0 commit comments

Comments
 (0)