-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d9851d
commit 4069323
Showing
49 changed files
with
2,722 additions
and
2,601 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test_linux: | ||
name: Test Linux | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [ 16.x, 18.x, 20.x, latest ] | ||
steps: | ||
- name: Disable sudo PATH replace | ||
run: | | ||
sudo cat /etc/sudoers | grep -v "secure_path=" > /tmp/.sudoers.tmp | ||
cat /tmp/.sudoers.tmp | sudo tee /etc/sudoers | ||
rm /tmp/.sudoers.tmp | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: addon/userspace/go/go.mod | ||
go-version: ">=1.22.0" | ||
|
||
- name: "Setup zig" | ||
uses: korandoru/setup-zig@v1 | ||
with: | ||
zig-version: "master" | ||
|
||
- name: Install build dependencies | ||
run: sudo apt update && sudo apt install -y build-essential | ||
|
||
- name: Install node dependencies | ||
run: npm install --no-save --no-audit --no-fund --ignore-scripts | ||
|
||
- name: Run tests | ||
run: ./node_modules/.bin/rebory build && sudo node --no-warnings --loader ts-node/esm src/index_test.js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,46 @@ | ||
{ | ||
"version": 4, | ||
"configurations": [ | ||
{ | ||
"name": "Win32", | ||
"cStandard": "c17", | ||
"cppStandard": "c++17", | ||
"intelliSenseMode": "windows-msvc-x64", | ||
"compilerArgs": [ | ||
"-fpermissive", | ||
"-fexceptions", | ||
"-w", | ||
"-fpermissive", | ||
"-fPIC", | ||
"-static" | ||
"name": "Mac", | ||
"includePath": [ | ||
"/usr/local/include/node", | ||
"/usr/local/lib/zig//libc/include/any-linux-any", | ||
"${workspaceFolder}/node_modules/node-addon-api", | ||
"${workspaceFolder}/**", | ||
"${workspaceFolder}/addon" | ||
], | ||
"defines": [ | ||
"NAPI_DISABLE_CPP_EXCEPTIONS", | ||
"ONSTARTADDON", | ||
"LISTDEV", | ||
"GETCONFIG", | ||
"SETCONFIG", | ||
"DELIFACE" | ||
"AF_NETLINK=16" | ||
], | ||
"macFrameworkPath": [ | ||
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" | ||
], | ||
"includePath": [ | ||
"${env:appdata}/../Local/node-gyp/Cache/18.17.0/include/node", | ||
"${workspaceFolder}/node_modules/node-addon-api", | ||
"${workspaceFolder}/addons/genKey/**", | ||
"${workspaceFolder}/addons/tools/**" | ||
] | ||
}, | ||
{ | ||
"name": "Linux", | ||
"compilerPath": "/usr/bin/clang", | ||
"cStandard": "c17", | ||
"cppStandard": "c++17", | ||
"intelliSenseMode": "linux-clang-x64", | ||
"compilerArgs": [ | ||
"-fpermissive", | ||
"-fexceptions", | ||
"-w", | ||
"-fpermissive", | ||
"-fPIC", | ||
"-static" | ||
], | ||
"defines": [ | ||
"NAPI_DISABLE_CPP_EXCEPTIONS" | ||
], | ||
"intelliSenseMode": "macos-clang-x64" | ||
}, | ||
{ | ||
"name": "Linux", | ||
"includePath": [ | ||
"${workspaceFolder}/node_modules/node-addon-api", | ||
"/usr/include/node", | ||
"${workspaceFolder}/node_modules/node-addon-api/**", | ||
"${workspaceFolder}/node_modules/**", | ||
"${workspaceFolder}/addons/genKey/**", | ||
"${workspaceFolder}/addons/tools/**" | ||
"${workspaceFolder}/**", | ||
"${workspaceFolder}/addon" | ||
] | ||
}, | ||
{ | ||
"name": "Mac", | ||
"name": "Win32", | ||
"includePath": [ | ||
"${env:appdata}/../.cache/rebory/latest/node/include/node", | ||
"${workspaceFolder}/node_modules/node-addon-api", | ||
"/usr/local/include/node", | ||
"${workspaceFolder}/addons/genKey/**", | ||
"${workspaceFolder}/addons/tools/**" | ||
"${workspaceFolder}/addon" | ||
], | ||
"defines": [ | ||
"NAPI_DISABLE_CPP_EXCEPTIONS" | ||
], | ||
"compilerArgs": [ | ||
"-fpermissive", | ||
"-fexceptions", | ||
"-w", | ||
"-fpermissive", | ||
"-fPIC", | ||
"-static" | ||
], | ||
"macFrameworkPath": [ | ||
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" | ||
], | ||
"compilerPath": "/usr/bin/clang", | ||
"defines": [], | ||
"intelliSenseMode": "windows-msvc-x64", | ||
"cStandard": "c17", | ||
"cppStandard": "c++17", | ||
"intelliSenseMode": "macos-clang-x64" | ||
"cppStandard": "c++17" | ||
} | ||
] | ||
], | ||
"version": 4 | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.