Skip to content

Commit fcda7b1

Browse files
committed
update versions + openssl install method
1 parent 3ab9eed commit fcda7b1

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/build-mac-m1.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ jobs:
1717
node-version: [16.x]
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Install OpenSSL
22-
run: |
23-
wget https://mac.r-project.org/bin/darwin20/arm64/openssl-1.1.1o-darwin.20-arm64.tar.xz
24-
tar -xf openssl-1.1.1o-darwin.20-arm64.tar.xz -C /tmp
25-
rm -rf openssl-1.1.1o-darwin.20-arm64.tar.xz
22+
run: HOMEBREW_NO_INSTALL_CLEANUP=1 brew reinstall openssl@1.1
2623
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2825
with:
2926
node-version: ${{ matrix.node-version }}
3027
- name: Build
@@ -33,5 +30,5 @@ jobs:
3330
node_modules/.bin/prebuild -r napi --backend cmake-js --arch arm64 --upload -u ${{ secrets.GITHUB_TOKEN }} -- --CDCMAKE_OSX_ARCHITECTURES="arm64"
3431
env:
3532
CI: true
36-
OPENSSL_ROOT_DIR: /tmp/opt/R/arm64
37-
OPENSSL_LIBRARIES: /tmp/opt/R/arm64/lib
33+
OPENSSL_ROOT_DIR: /opt/homebrew/opt/openssl
34+
OPENSSL_LIBRARIES: /opt/homebrew/opt/openssl/lib

0 commit comments

Comments
 (0)