|
47 | 47 |
|
48 | 48 | job_compile:
|
49 | 49 | name: Compile Binary (v${{ matrix.node }}) ${{ matrix.target_platform || matrix.os }}, ${{ matrix.arch || matrix.container }}, ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }}
|
50 |
| - needs: [job_docker] |
51 | 50 | runs-on: ${{ matrix.os }}
|
52 | 51 | container:
|
53 | 52 | image: ${{ matrix.container }}
|
|
56 | 55 | fail-fast: false
|
57 | 56 | matrix:
|
58 | 57 | include:
|
59 |
| - # x64 glibc |
60 |
| - - os: ubuntu-22.04 |
61 |
| - container: ubuntu-local:latest |
62 |
| - node: 18 |
63 |
| - binary: linux-x64-glibc-108 |
64 |
| - - os: ubuntu-22.04 |
65 |
| - container: ubuntu-local:latest |
66 |
| - node: 20 |
67 |
| - binary: linux-x64-glibc-115 |
68 |
| - - os: ubuntu-22.04 |
69 |
| - container: ubuntu-local:latest |
70 |
| - node: 22 |
71 |
| - binary: linux-x64-glibc-127 |
72 |
| - - os: ubuntu-22.04 |
73 |
| - container: ubuntu-local:latest |
74 |
| - node: 24 |
75 |
| - binary: linux-x64-glibc-137 |
76 |
| - |
77 | 58 | # x64 musl
|
78 | 59 | - os: ubuntu-22.04
|
79 | 60 | container: node:18-alpine3.17
|
@@ -197,18 +178,6 @@ jobs:
|
197 | 178 | apk add --no-cache build-base git g++ make curl python3
|
198 | 179 | ln -sf python3 /usr/bin/python
|
199 | 180 |
|
200 |
| - - name: Download Docker Image Artifact |
201 |
| - if: matrix.container == 'ubuntu-local:latest' |
202 |
| - uses: actions/download-artifact@v4 |
203 |
| - with: |
204 |
| - name: ubuntu-local-docker-image |
205 |
| - path: /tmp/ |
206 |
| - |
207 |
| - - name: Load Docker Image |
208 |
| - if: matrix.container == 'ubuntu-local:latest' |
209 |
| - run: | |
210 |
| - docker load < /tmp/ubuntu-local-image.tar.gz |
211 |
| -
|
212 | 181 | - name: Check out current commit
|
213 | 182 | uses: actions/checkout@v4
|
214 | 183 |
|
@@ -305,9 +274,74 @@ jobs:
|
305 | 274 | path: ${{ github.workspace }}/lib/stack-trace-${{matrix.binary}}.node
|
306 | 275 | if-no-files-found: error
|
307 | 276 |
|
| 277 | + job_compile_ubuntu_local: |
| 278 | + name: Compile Binary (v${{ matrix.node }}) ubuntu-local, x64, glibc |
| 279 | + needs: [job_docker] |
| 280 | + runs-on: ubuntu-22.04 |
| 281 | + timeout-minutes: 30 |
| 282 | + strategy: |
| 283 | + fail-fast: false |
| 284 | + matrix: |
| 285 | + include: |
| 286 | + # x64 glibc using ubuntu-local |
| 287 | + - node: 18 |
| 288 | + binary: linux-x64-glibc-108 |
| 289 | + - node: 20 |
| 290 | + binary: linux-x64-glibc-115 |
| 291 | + - node: 22 |
| 292 | + binary: linux-x64-glibc-127 |
| 293 | + - node: 24 |
| 294 | + binary: linux-x64-glibc-137 |
| 295 | + |
| 296 | + steps: |
| 297 | + - name: Download Docker Image Artifact |
| 298 | + uses: actions/download-artifact@v4 |
| 299 | + with: |
| 300 | + name: ubuntu-local-docker-image |
| 301 | + path: /tmp/ |
| 302 | + |
| 303 | + - name: Load Docker Image |
| 304 | + run: | |
| 305 | + docker load < /tmp/ubuntu-local-image.tar.gz |
| 306 | +
|
| 307 | + - name: Check out current commit |
| 308 | + uses: actions/checkout@v4 |
| 309 | + |
| 310 | + - name: Install dependencies |
| 311 | + run: | |
| 312 | + docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace ubuntu-local:latest \ |
| 313 | + yarn install --ignore-engines --ignore-scripts --frozen-lockfile |
| 314 | +
|
| 315 | + - name: Configure safe directory |
| 316 | + run: | |
| 317 | + docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace ubuntu-local:latest \ |
| 318 | + git config --global --add safe.directory "*" |
| 319 | +
|
| 320 | + - name: Configure node-gyp |
| 321 | + run: | |
| 322 | + docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace ubuntu-local:latest \ |
| 323 | + yarn build:bindings:configure |
| 324 | +
|
| 325 | + - name: Build Bindings |
| 326 | + run: | |
| 327 | + docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace ubuntu-local:latest \ |
| 328 | + yarn build:bindings |
| 329 | +
|
| 330 | + - name: Build |
| 331 | + run: | |
| 332 | + docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace ubuntu-local:latest \ |
| 333 | + yarn build:lib |
| 334 | +
|
| 335 | + - name: Archive Binary |
| 336 | + uses: actions/upload-artifact@v4 |
| 337 | + with: |
| 338 | + name: stack-trace-${{ matrix.binary }} |
| 339 | + path: ${{ github.workspace }}/lib/stack-trace-${{matrix.binary}}.node |
| 340 | + if-no-files-found: error |
| 341 | + |
308 | 342 | job_build:
|
309 | 343 | name: Build Package
|
310 |
| - needs: [job_compile] |
| 344 | + needs: [job_compile, job_compile_ubuntu_local] |
311 | 345 | runs-on: ubuntu-latest
|
312 | 346 | steps:
|
313 | 347 | - name: Check out current commit
|
|
0 commit comments