Skip to content

Commit

Permalink
Node.js 15 support (legacy) (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop authored Nov 24, 2020
1 parent 8aec5b0 commit 68f136e
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 227 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [10.x, 12.x, 14.x, 15.x]
rust-toolchain: [stable, beta, nightly]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [10.x, 12.x, 14.x, 15.x]
rust-toolchain: [stable, beta, nightly]

steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
runs-on: windows-latest

strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [10.x, 12.x, 14.x, 15.x]
rust-toolchain: [stable, beta, nightly]

steps:
Expand All @@ -30,6 +31,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use npm v6
if: ${{ matrix.node-version == '15.x' }}
run: npm install -g npm@6
- name: Install libclang
uses: KyleMayes/install-llvm-action@01144dc
with:
Expand Down
11 changes: 8 additions & 3 deletions crates/neon-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,17 @@ mod build {
.join("src")
.join("neon.o")
} else {
native_dir
let neon_dir = native_dir
.join("build")
.join(configuration)
.join("obj")
.join("neon")
.join("neon.obj")
.join("neon");
let object_path = neon_dir.join("src").join("neon.obj");
if object_path.exists() {
object_path
} else {
neon_dir.join("neon.obj")
}
};

cc::Build::new().cpp(true).object(object_path).compile("libneon.a");
Expand Down
Loading

0 comments on commit 68f136e

Please sign in to comment.