Skip to content

Commit fc1d0cf

Browse files
committed
ci: use Node 20 as the modern target in addition to node 12
1 parent e019f28 commit fc1d0cf

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/CI.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ jobs:
4444

4545
# Alpine
4646
- os: ubuntu-22.04
47-
docker: node:14-alpine
47+
docker: node:18-alpine
4848
docker_cmd:
49-
apk add --no-cache bash build-base curl git g++ make ninja
50-
pkgconfig unzip zip python3 tar cmake ninja musl-dev && npm i -g
51-
pnpm && pnpm install && pnpm run build
49+
apk add --no-cache bash build-base curl git g++ make ninja-build
50+
pkgconfig unzip zip python3 tar cmake ninja musl-dev && cp
51+
/usr/lib/ninja-build/bin/ninja /usr/bin/ninja && npm i -g pnpm &&
52+
pnpm install && pnpm run build
5253
node_arch: x64
5354
cpp_arch: x64
5455

@@ -109,11 +110,11 @@ jobs:
109110
with:
110111
version: 9
111112

112-
- name: Install Node 18
113+
- name: Install Node 20
113114
if: ${{ !matrix.docker }}
114115
uses: actions/setup-node@v4
115116
with:
116-
node-version: 18
117+
node-version: 20
117118
architecture: ${{ env.setup_node_arch }}
118119

119120
- name: Install Dependencies
@@ -144,11 +145,11 @@ jobs:
144145
run:
145146
node ./node_modules/cmake-ts/build/main.js named-configs windows-x86
146147

147-
- name: Use Node 18
148+
- name: Use Node 20
148149
if: ${{ !matrix.docker }}
149150
uses: actions/setup-node@v4
150151
with:
151-
node-version: 18
152+
node-version: 20
152153
architecture: ${{ env.setup_node_arch }}
153154

154155
- name: Prebuild Docker

0 commit comments

Comments
 (0)