@@ -149,7 +149,8 @@ jobs:
149
149
cd gccrs-build; \
150
150
# Add cargo to our path quickly
151
151
. "$HOME/.cargo/env";
152
- make -Otarget -j $(nproc) 2>&1 | tee log
152
+ # Build without network access
153
+ unshare --net --ipc -r /bin/bash -c "make -Otarget -j $(nproc) 2>&1 | tee log ; exit \${PIPESTATUS[0]}"
153
154
154
155
- name : Check for new warnings
155
156
run : |
@@ -235,7 +236,8 @@ jobs:
235
236
cd gccrs-build; \
236
237
# Add cargo to our path quickly
237
238
. "$HOME/.cargo/env";
238
- make -Otarget -j $(nproc) 2>&1 | tee log
239
+ # Build without network access
240
+ unshare --net --ipc -r /bin/bash -c "make -Otarget -j $(nproc) 2>&1 | tee log ; exit \${PIPESTATUS[0]}"
239
241
240
242
- name : Check for new warnings
241
243
run : |
@@ -346,8 +348,8 @@ jobs:
346
348
run : |
347
349
# Add cargo to our path quickly
348
350
. "$HOME/.cargo/env";
349
- PATH=$HOME/gcc-5.4.0/bin:$PATH \
350
- make -C gccrs-build -j $(nproc)
351
+ # Build without network access
352
+ PATH="$HOME/gcc-5.4.0/bin:$PATH" unshare --net --ipc -r /bin/bash -c " make -C gccrs-build -j $(nproc) ; exit \${PIPESTATUS[0]}"
351
353
352
354
- name : Run Tests
353
355
run : |
@@ -409,7 +411,8 @@ jobs:
409
411
shell : bash
410
412
run : |
411
413
cd gccrs-build; \
412
- make -j $(sysctl -n hw.ncpu) 2>&1 | tee log
414
+ # Build without network access
415
+ unshare --net --ipc -r /bin/bash -c "make -Otarget -j $(sysctl -n hw.ncpu) 2>&1 | tee log ; exit \${PIPESTATUS[0]}"
413
416
414
417
- name : Run Tests
415
418
run : |
@@ -486,7 +489,8 @@ jobs:
486
489
cd gccrs-build; \
487
490
# Add cargo to our path quickly
488
491
. "$HOME/.cargo/env";
489
- make -Otarget -j $(nproc) 2>&1 | tee log
492
+ # Build without network access
493
+ unshare --net --ipc -r /bin/bash -c "make -Otarget -j $(nproc) 2>&1 | tee log ; exit \${PIPESTATUS[0]}"
490
494
491
495
- name : Run Tests
492
496
run : |
0 commit comments