File tree Expand file tree Collapse file tree 1 file changed +46
-1
lines changed
Expand file tree Collapse file tree 1 file changed +46
-1
lines changed Original file line number Diff line number Diff line change 66 - v20.18.3
77
88jobs :
9- build :
9+ build-node-fibers :
10+ name : Build node-fibers with custom Node
11+ runs-on : ubuntu-latest
12+ needs : build-node # ensures this runs after Node is built
13+ strategy :
14+ matrix :
15+ include :
16+ - platform : linux
17+ arch : x64
18+ - platform : linux
19+ arch : arm64
20+
21+ steps :
22+ - name : Download Node archive
23+ uses : actions/download-artifact@v4
24+ with :
25+ name : node-${{ env.NODE_VERSION }}-${{ matrix.platform }}-${{ matrix.arch }}-${{ needs.build.outputs.BUILD_ID }}
26+
27+ - name : Extract Node archive
28+ run : |
29+ mkdir -p node-install
30+ tar -C node-install -xJf node-*.tar.xz
31+ echo "$GITHUB_WORKSPACE/node-install/usr/local/bin" >> $GITHUB_PATH
32+
33+ - name : Checkout node-fibers fork
34+ uses : actions/checkout@v3
35+ with :
36+ repository : asana/node-fibers
37+ ref : jackstrohm_node20_fibers
38+ path : node-fibers
39+
40+ - name : Build node-fibers
41+ working-directory : node-fibers
42+ run : |
43+ which node
44+ node -v
45+ npm install --nodedir="$GITHUB_WORKSPACE/node-install/usr/local"
46+ npm test
47+
48+ build-node :
1049 name : Build ${{ matrix.platform }}-${{ matrix.arch }}
1150 runs-on : ${{ matrix.runner }}
1251 strategy :
62101 FILENAME=node-${NODE_VERSION}-${{ matrix.platform }}-${{ matrix.arch }}-${BUILD_ID}.tar.xz
63102 tar -C node-install -cJf artifacts/$FILENAME .
64103 echo "NODE_ARCHIVE=$FILENAME" >> $GITHUB_ENV
104+
105+ - name : Upload Node archive
106+ uses : actions/upload-artifact@v4
107+ with :
108+ name : ${{ env.NODE_ARCHIVE }}
109+ path : artifacts/${{ env.NODE_ARCHIVE }}
You can’t perform that action at this time.
0 commit comments