Skip to content

Commit 1f96ba5

Browse files
author
LongYinan
committed
build: MacOS 10.13 compatible issue
1 parent 76b7672 commit 1f96ba5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,19 @@ jobs:
9494
args: -p node-rs-bcrypt --lib -- --nocapture
9595

9696
- name: Run build
97+
if: matrix.os != 'macos-latest'
9798
run: |
9899
cargo build --release
99100
npx lerna run build --stream -- --platform
100101
102+
- name: Run build
103+
if: matrix.os == 'macos-latest'
104+
run: |
105+
cargo build --release
106+
npx lerna run build --stream -- --platform
107+
env:
108+
MACOSX_DEPLOYMENT_TARGET: '10.13'
109+
101110
- name: Upload artifact
102111
uses: actions/upload-artifact@v2
103112
with:

packages/crc32/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2018"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
napi = { version = "0.4"}
11+
napi = { version = "0.4" }
1212
napi-derive = { version = "0.4.2" }
1313
crc32fast = "1.2"
1414

0 commit comments

Comments
 (0)