Skip to content

Commit 8fbdb8a

Browse files
authored
Merge pull request #236 from Flamefire/patch-1
Fix node 20 issue on GHA CI
2 parents abb721d + ef15182 commit 8fbdb8a

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/ci.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ env:
2222
NET_RETRY_COUNT: 5
2323
DEFAULT_BUILD_VARIANT: debug,release
2424
B2_CI_VERSION: 1
25-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
2625

2726
jobs:
2827
posix:
@@ -286,7 +285,11 @@ jobs:
286285

287286
timeout-minutes: 60
288287
runs-on: ${{matrix.os}}
289-
container: ${{matrix.container}}
288+
container:
289+
image: ${{matrix.container}}
290+
volumes:
291+
- /node20217:/node20217:rw,rshared
292+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
290293

291294
steps:
292295
- name: Setup environment
@@ -310,9 +313,13 @@ jobs:
310313
fi
311314
apt-get -o Acquire::Retries=$NET_RETRY_COUNT install -y sudo software-properties-common tzdata wget curl apt-transport-https ca-certificates make build-essential g++ $PYTHON_PACKAGE python3 perl git cmake
312315
fi
316+
if [[ "${{matrix.container}}" == "ubuntu:1"* ]]; then
317+
# Node 20 doesn't work with Ubuntu 16/18 glibc: https://github.com/actions/checkout/issues/1590
318+
curl -sL https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz | tar -xJ --strip-components 1 -C /node20217
319+
fi
313320
fi
314321
git config --global pack.threads 0
315-
- uses: actions/checkout@v3
322+
- uses: actions/checkout@v4
316323

317324
- name: Install packages
318325
if: matrix.install
@@ -562,7 +569,7 @@ jobs:
562569

563570
- name: Install packages
564571
if: matrix.install
565-
run: sudo apt install ${{matrix.install}}
572+
run: sudo apt-get -y install ${{matrix.install}}
566573

567574
- name: Setup Boost
568575
run: |
@@ -611,7 +618,7 @@ jobs:
611618

612619
- name: Install packages
613620
if: matrix.install
614-
run: sudo apt install ${{matrix.install}}
621+
run: sudo apt-get -y install ${{matrix.install}}
615622

616623
- name: Setup Boost
617624
run: |
@@ -670,7 +677,7 @@ jobs:
670677

671678
- name: Install packages
672679
if: matrix.install
673-
run: sudo apt install ${{matrix.install}}
680+
run: sudo apt-get -y install ${{matrix.install}}
674681

675682
- name: Setup Boost
676683
run: |

0 commit comments

Comments
 (0)