FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-addon-api/.github/workflows/node-api-headers.yml at main · nodejs/node-addon-api · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
nodejs
/
node-addon-api
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
498
Star
2.4k
Code
Issues
13
Pull requests
6
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-addon-api
/
.github
/
workflows
/
node-api-headers.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
71 lines (66 loc) · 1.99 KB
Breadcrumbs
node-addon-api
/
.github
/
workflows
/
node-api-headers.yml
Copy path
File metadata and controls
71 lines (66 loc) · 1.99 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name
:
Node.js CI with node-api-headers
on
:
[push, pull_request]
env
:
PYTHON_VERSION
:
'
3.11
'
permissions
:
contents
:
read
jobs
:
test
:
timeout-minutes
:
30
strategy
:
fail-fast
:
false
matrix
:
api_version
:
-
'
9
'
node-version
:
-
22.x
node-api-headers-version
:
-
'
1.1.0
'
-
'
1.2.0
'
-
'
1.3.0
'
os
:
-
ubuntu-latest
compiler
:
-
gcc
-
clang
runs-on
:
${{ matrix.os }}
steps
:
-
name
:
Harden Runner
uses
:
step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc
#
v2.15.1
with
:
egress-policy
:
audit
-
uses
:
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
#
v6.0.2
-
name
:
Set up Python ${{ env.PYTHON_VERSION }}
uses
:
actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
#
v6.2.0
with
:
python-version
:
${{ env.PYTHON_VERSION }}
-
name
:
Use Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
#
v6.3.0
with
:
node-version
:
${{ matrix.node-version }}
-
name
:
Check Node.js installation
run
:
|
node --version
npm --version
-
name
:
Install dependencies
run
:
|
npm install
npm install "node-api-headers@${{ matrix.node-api-headers-version }}"
-
name
:
npm test
run
:
|
export NAPI_VERSION=${{ matrix.api_version }}
if [ "${{ matrix.compiler }}" = "gcc" ]; then
export CC="gcc" CXX="g++"
fi
if [ "${{ matrix.compiler }}" = "clang" ]; then
export CC="clang" CXX="clang++"
fi
echo "CC=\"$CC\" CXX=\"$CXX\""
echo "$CC --version"
$CC --version
echo "$CXX --version"
$CXX --version
export CFLAGS="$CFLAGS -O3 --coverage" LDFLAGS="$LDFLAGS --coverage"
export use_node_api_headers=true
echo "CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""
npm run pretest -- --verbose
Back
|
FazBrowse Home
|
New Git URL