-
-
Notifications
You must be signed in to change notification settings - Fork 438
50 lines (41 loc) · 1.51 KB
/
build-debug-node.yml
File metadata and controls
50 lines (41 loc) · 1.51 KB
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
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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: nodejs-debug-build-${{ github.event.inputs.version }}
path: nodejs-debug-build-${{ github.event.inputs.version }}