@@ -193,6 +193,67 @@ jobs:
193
193
194
194
package-macos-amd64 :
195
195
name : x86-64 macOS build
196
+ runs-on : macos-13
197
+ timeout-minutes : 15
198
+ needs : npm-version
199
+ env :
200
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
201
+
202
+ steps :
203
+ - name : Checkout repo
204
+ uses : actions/checkout@v4
205
+
206
+ - name : Install Node.js
207
+ uses : actions/setup-node@v4
208
+ with :
209
+ node-version-file : .node-version
210
+ cache : npm
211
+ cache-dependency-path : |
212
+ package-lock.json
213
+ test/package-lock.json
214
+
215
+ - run : SKIP_SUBMODULE_DEPS=1 npm ci
216
+
217
+ - name : Install nfpm
218
+ run : |
219
+ mkdir -p ~/.local/bin
220
+ curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
221
+ echo "$HOME/.local/bin" >> $GITHUB_PATH
222
+
223
+ # The version of node-gyp we use depends on distutils but it was removed
224
+ # in Python 3.12. It seems to be fixed in the latest node-gyp so when we
225
+ # next update Node we can probably remove this. For now, install
226
+ # setuptools since it contains distutils.
227
+ - run : brew install python-setuptools
228
+
229
+ - name : Download npm package
230
+ uses : actions/download-artifact@v4
231
+ with :
232
+ name : npm-release-package
233
+
234
+ - run : tar -xzf package.tar.gz
235
+ - run : npm run release:standalone
236
+ - run : npm run test:native
237
+
238
+ # Strip out the v (v4.9.1 -> 4.9.1).
239
+ - name : Get and set VERSION
240
+ run : |
241
+ TAG="${{ inputs.version || github.ref_name }}"
242
+ echo "VERSION=${TAG#v}" >> $GITHUB_ENV
243
+
244
+ - name : Build packages with nfpm
245
+ env :
246
+ VERSION : ${{ env.VERSION }}
247
+ run : npm run package
248
+
249
+ - uses : softprops/action-gh-release@v1
250
+ with :
251
+ draft : true
252
+ discussion_category_name : " 📣 Announcements"
253
+ files : ./release-packages/*
254
+
255
+ package-macos-arm64 :
256
+ name : arm64 macOS build
196
257
runs-on : macos-latest
197
258
timeout-minutes : 15
198
259
needs : npm-version
0 commit comments