Skip to content

Commit

Permalink
testing macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Mar 6, 2025
1 parent 7e70f79 commit 0b4242d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
fail-fast: false
matrix:
# os: [macos-13, macos-14, ubuntu-22.04, ubuntu-22.04-arm, windows-2022]
os: [macos-14, macos-14, macos-15]
os: [macos-13, macos-14, macos-15]
# node: [18, 20, 22, 23]
node: [20]
steps:
Expand Down
5 changes: 4 additions & 1 deletion lib/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ if (process.env.EDGE_NATIVE) {
else if (fs.existsSync(builtEdge)) {
edgeNative = builtEdge;
}
else if (process.platform === 'win32' || process.platform === 'darwin') {
else if (process.platform === 'win32') {
edgeNative = path.resolve(__dirname, './native/' + process.platform + '/' + process.arch + '/' + determineVersion() + '/' + (process.env.EDGE_USE_CORECLR ? 'edge_coreclr' : 'edge_nativeclr'));
}
else if(process.platform === 'darwin'){
edgeNative = path.resolve(__dirname, './native/' + process.platform + '/' + process.arch + '/' + nodeVersion + '/' + 'edge_coreclr.node');
}
else {
throw new Error('The edge native module is not available at ' + builtEdge
+ '. You can use EDGE_NATIVE environment variable to provide alternate location of edge.node. '
Expand Down

0 comments on commit 0b4242d

Please sign in to comment.