33 release :
44 types : [published]
55jobs :
6- build_x86_64_legacy_nodejs :
7- name : Prebuild x86_64 (legacy Node.js)
8- runs-on : ${{ matrix.os }}
9- strategy :
10- fail-fast : false
11- matrix :
12- os : [macos-13, ubuntu-22.04, ubuntu-24.04, windows-2019]
13- node : [12, 13, 14, 15, 16, 17, 19]
14- steps :
15- - name : Checkout repository
16- uses : actions/checkout@v4
17- with :
18- submodules : true
19-
20- - name : Install Node v${{ matrix.node }}
21- uses : actions/setup-node@v3
22- with :
23- node-version : ${{ matrix.node }}
24-
25- - name : Setup python
26- uses : actions/setup-python@v4
27- with :
28- python-version : ' 3.8'
29-
30- - name : Install dependencies
31- run : npm install --build-from-source
32-
33- - name : Package prebuild
34- run : npm run build
35-
36- - name : Upload prebuild asset
37- uses : icrawl/action-artifact@v2
38- env :
39- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40- with :
41- path : ' build/stage/**/*.tar.gz'
42-
436 build_x86_64 :
447 name : Prebuild x86_64
458 runs-on : ${{ matrix.os }}
469 strategy :
4710 fail-fast : false
4811 matrix :
4912 os : [macos-13, ubuntu-22.04, ubuntu-24.04, windows-2022]
50- node : [18, 20, 21, 22 ]
13+ node : [18, 20, 22, 24 ]
5114 steps :
5215 - name : Checkout repository
5316 uses : actions/checkout@v4
8043 strategy :
8144 fail-fast : false
8245 matrix :
83- node : [12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 ]
46+ node : [18, 20, 22, 24 ]
8447 steps :
8548 - name : Setup env with Node v${{ matrix.node }}
8649 run : |
@@ -92,45 +55,11 @@ jobs:
9255 with :
9356 submodules : true
9457
95- - name : Install dependencies
96- run : npm install --unsafe-perm --build-from-source
97-
98- - name : Package prebuild
99- run : npm run build
100-
101- - name : Upload prebuild asset
102- uses : icrawl/action-artifact@v2
103- env :
104- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
105- with :
106- path : ' build/stage/**/*.tar.gz'
107-
108- build_aarch64_legacy_nodejs_linux :
109- name : Prebuild aarch64 Linux (legacy Node.js)
110- runs-on : ${{ matrix.os }}
111- strategy :
112- fail-fast : false
113- matrix :
114- os : [ubuntu-22.04]
115- node : [12, 13, 14, 15, 16, 17, 19]
116- steps :
117- - name : Checkout repository
118- uses : actions/checkout@v4
119- with :
120- submodules : true
121-
122- - name : Install Node v${{ matrix.node }}
123- uses : actions/setup-node@v3
124- with :
125- node-version : ${{ matrix.node }}
126-
12758 - name : Install dependencies
12859 run : npm install --build-from-source
12960
13061 - name : Package prebuild
131- run : |
132- sudo apt update -y && sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
133- CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ npx node-pre-gyp --target_arch=arm64 configure build package
62+ run : npm run build
13463
13564 - name : Upload prebuild asset
13665 uses : icrawl/action-artifact@v2
@@ -141,12 +70,11 @@ jobs:
14170
14271 build_aarch64_linux :
14372 name : Prebuild aarch64 Linux
144- runs-on : ${{ matrix.os }}
73+ runs-on : ubuntu-24.04
14574 strategy :
14675 fail-fast : false
14776 matrix :
148- os : [ubuntu-22.04]
149- node : [18, 20, 21, 22]
77+ node : [18, 20, 22, 24]
15078 steps :
15179 - name : Checkout repository
15280 uses : actions/checkout@v4
@@ -173,75 +101,6 @@ jobs:
173101 with :
174102 path : ' build/stage/**/*.tar.gz'
175103
176- build_aarch64_legacy_nodejs_mac :
177- name : Prebuild aarch64 macOS (legacy Node.js)
178- runs-on : ${{ matrix.os }}
179- strategy :
180- fail-fast : false
181- matrix :
182- os : [macos-14]
183- node : [16, 17, 19]
184- steps :
185- - name : Checkout repository
186- uses : actions/checkout@v4
187- with :
188- submodules : true
189-
190- - name : Install Node v${{ matrix.node }}
191- uses : actions/setup-node@v3
192- with :
193- node-version : ${{ matrix.node }}
194-
195- - name : Setup python
196- uses : actions/setup-python@v4
197- with :
198- python-version : ' 3.8'
199-
200- - name : Install dependencies
201- run : npm install --build-from-source
202-
203- - name : Package prebuild
204- run : npm run build
205-
206- - name : Upload prebuild asset
207- uses : icrawl/action-artifact@v2
208- env :
209- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
210- with :
211- path : ' build/stage/**/*.tar.gz'
212-
213- build_aarch64_mac :
214- name : Prebuild aarch64 macOS
215- runs-on : ${{ matrix.os }}
216- strategy :
217- fail-fast : false
218- matrix :
219- os : [macos-14]
220- node : [18, 20, 21, 22]
221- steps :
222- - name : Checkout repository
223- uses : actions/checkout@v4
224- with :
225- submodules : true
226-
227- - name : Install Node v${{ matrix.node }}
228- uses : actions/setup-node@v3
229- with :
230- node-version : ${{ matrix.node }}
231-
232- - name : Install dependencies
233- run : npm install --build-from-source
234-
235- - name : Package prebuild
236- run : npm run build
237-
238- - name : Upload prebuild asset
239- uses : icrawl/action-artifact@v2
240- env :
241- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
242- with :
243- path : ' build/stage/**/*.tar.gz'
244-
245104 build_musl_aarch64 :
246105 name : Prebuild aarch64 (musl)
247106 runs-on : ubuntu-latest
@@ -250,7 +109,7 @@ jobs:
250109 strategy :
251110 fail-fast : false
252111 matrix :
253- node : [12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 ]
112+ node : [18, 20, 22, 24 ]
254113 steps :
255114 - name : Setup env with Node v${{ matrix.node }}
256115 run : |
0 commit comments