-
-
Notifications
You must be signed in to change notification settings - Fork 61
38 lines (33 loc) · 1.02 KB
/
build-mac-m1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build - Mac M1
on:
workflow_dispatch:
# push:
# tags:
# - v*
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
build-macos:
runs-on: macos-13
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v4
- name: Install OpenSSL
run: |
wget https://mac.r-project.org/bin/darwin20/arm64/openssl-1.1.1t-darwin.20-arm64.tar.xz
tar -xf openssl-1.1.1t-darwin.20-arm64.tar.xz -C /tmp
rm -rf openssl-1.1.1t-darwin.20-arm64.tar.xz
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install --ignore-scripts
node_modules/.bin/prebuild -r napi --backend cmake-js --arch arm64 --upload -u ${{ secrets.GITHUB_TOKEN }} -- --CDCMAKE_OSX_ARCHITECTURES="arm64"
env:
CI: true
OPENSSL_ROOT_DIR: /tmp/opt/R/arm64
OPENSSL_LIBRARIES: /tmp/opt/R/arm64/lib