|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | prebuild: |
| 10 | + name: ${{ matrix.os }} |
10 | 11 | runs-on: ${{ matrix.os }} |
11 | 12 | strategy: |
12 | 13 | matrix: |
13 | | - node-version: [ 18.x, 20.x, 22.x ] |
14 | 14 | os: [ ubuntu-latest, macos-latest, windows-latest ] |
15 | | - fail-fast: false |
16 | 15 | steps: |
17 | 16 | - uses: actions/checkout@v4 |
18 | | - - name: Use Node.js 18.x |
| 17 | + - name: Use nodejs |
19 | 18 | uses: actions/setup-node@v4 |
20 | 19 | with: |
21 | | - node-version: 18.x |
| 20 | + node-version: latest |
22 | 21 | - name: Add msbuild to PATH |
23 | 22 | if: matrix.os == 'windows-latest' |
24 | 23 | uses: microsoft/setup-msbuild@v1.3 |
25 | 24 | - name: Install node-gyp |
26 | 25 | if: matrix.os == 'windows-latest' |
27 | 26 | run: | |
28 | 27 | npm install --global node-gyp@latest |
29 | | - - name: Build |
| 28 | + - name: Dependencies |
30 | 29 | run: | |
31 | 30 | npm install --ignore-scripts |
32 | | - - name: Prebuild |
| 31 | + - name: Build |
33 | 32 | run: | |
34 | | - npm run prebuild |
| 33 | + npx prebuild --target 18.0.0 |
| 34 | + npx prebuild --target 20.0.0 |
| 35 | + npx prebuild --target 22.0.0 |
35 | 36 | - name: Upload |
36 | 37 | run: | |
37 | | - npx prebuild --upload ${{ secrets.UPLOAD_TOKEN }} |
| 38 | + npx prebuild --upload-all ${{ secrets.UPLOAD_TOKEN }} |
38 | 39 | env: |
39 | 40 | MAKEFLAGS: -j4 |
40 | 41 |
|
41 | 42 | prebuild-alpine: |
| 43 | + name: alpine |
42 | 44 | runs-on: ubuntu-latest |
43 | | - container: node:18-alpine3.19 |
| 45 | + container: node:alpine |
44 | 46 | steps: |
45 | 47 | - uses: actions/checkout@v4 |
46 | | - - name: install build deps |
| 48 | + - name: Use nodejs |
| 49 | + uses: actions/setup-node@v4 |
| 50 | + with: |
| 51 | + node-version: latest |
| 52 | + - name: Install build deps |
47 | 53 | run: | |
48 | 54 | apk add g++ make python3 |
49 | | - - name: Build |
| 55 | + - name: Dependencies |
50 | 56 | run: | |
51 | 57 | npm install --ignore-scripts |
52 | | - - name: Prebuild |
| 58 | + - name: Build |
53 | 59 | run: | |
54 | | - npm run prebuild |
| 60 | + npx prebuild --target 18.0.0 |
| 61 | + npx prebuild --target 20.0.0 |
| 62 | + npx prebuild --target 22.0.0 |
55 | 63 | - name: Upload |
56 | 64 | run: | |
57 | | - npx prebuild --upload ${{ secrets.UPLOAD_TOKEN }} |
| 65 | + npx prebuild --upload-all ${{ secrets.UPLOAD_TOKEN }} |
58 | 66 | env: |
59 | 67 | MAKEFLAGS: -j4 |
0 commit comments