-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Showing
320 changed files
with
6,984 additions
and
2,198 deletions.
There are no files selected for viewing
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 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,16 @@ | ||
name: 'Take core dump files' | ||
description: 'List down and upload core dumps as artifacts' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: List down core dump files | ||
run: | | ||
ls -lah /cores/ | ||
sudo chmod -R +rwx /cores/* | ||
shell: sh | ||
|
||
- name: Backup core dump | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: core-dump | ||
path: /cores/* |
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,23 @@ | ||
name: "Setup node with debug support" | ||
description: "Setup the nodejs version with debug support" | ||
runs: | ||
using: "composite" | ||
steps: | ||
# For now we only have the Node 20 debug build | ||
- run: | | ||
sudo apt-get install unzip && curl -L "https://drive.google.com/uc?export=download&id=1hlhbbQi-NJi8_WjULvOdo-K_tfZFzN3Z&confirm=t" > nodejs.zip && unzip nodejs.zip | ||
sudo cp -f node /usr/bin/node-with-debug | ||
sudo chmod +x /usr/bin/node-with-debug | ||
shell: sh | ||
# List of naming patterns | ||
# https://man7.org/linux/man-pages/man5/core.5.html | ||
- run: | | ||
sudo mkdir -p /cores | ||
sudo sh -c "echo /cores/core-%e-%s-%u-%g-%p-%t > /proc/sys/kernel/core_pattern" | ||
shell: sh | ||
- run: | | ||
echo $(/usr/bin/node-with-debug --print "process.version") | ||
echo $(/usr/bin/node-with-debug --print "process.features.debug") | ||
shell: sh |
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ on: | |
branches: | ||
- stable | ||
- unstable | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
|
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,50 @@ | ||
name: Build debug node | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
description: 'Node.js version' | ||
|
||
jobs: | ||
build: | ||
name: Build Debug version of Node.js | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Install dependencies | ||
run: apt-get install python3 g++ make python3-pip | ||
|
||
- name: Download Node.js source | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'nodejs/node' | ||
ref: 'v${{ github.event.inputs.version }}' | ||
path: 'nodejs' | ||
|
||
- name: Configure nodejs with debug flag | ||
run: ./configure --debug | ||
working-directory: 'nodejs' | ||
|
||
- name: Compile the nodejs | ||
run: make -j$(nproc --all) | ||
working-directory: 'nodejs' | ||
|
||
- name: Verify the build | ||
run: make test-only | ||
working-directory: 'nodejs' | ||
|
||
- name: Create destination folder | ||
run: mkdir -p ${{ github.workspace }}/nodejs-debug-build-${{ github.event.inputs.version }} | ||
|
||
- name: Copy nodejs debug build | ||
run: cp out/Debug/node ${{ github.workspace }}/nodejs-debug-build-${{ github.event.inputs.version }} | ||
working-directory: 'nodejs' | ||
|
||
- name: Upload build to artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nodejs-debug-build-${{ github.event.inputs.version }} | ||
path: nodejs-debug-build-${{ github.event.inputs.version }} |
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 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 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 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 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
Oops, something went wrong.