|
11 | 11 | - '*.md' |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - release: |
| 14 | + default: |
15 | 15 | runs-on: ${{ matrix.platform }} |
16 | 16 |
|
17 | 17 | strategy: |
18 | 18 | fail-fast: false |
19 | 19 | matrix: |
20 | | - platform: [ubuntu-latest, ubuntu-20.04, windows-2019, windows-2022, macos-latest] |
| 20 | + platform: [ubuntu-latest, ubuntu-22.04, windows-2019, windows-2022, macos-latest] |
21 | 21 | node-version: ['18.17', 18, 20, 22, 23] |
22 | | - exclude: |
23 | | - - platform: ubuntu-20.04 |
24 | | - node-version: 23 |
25 | 22 |
|
26 | 23 | steps: |
27 | 24 | - uses: actions/checkout@v3 |
|
46 | 43 | shell: bash |
47 | 44 |
|
48 | 45 |
|
| 46 | + legacy: |
| 47 | + runs-on: ubuntu-latest |
| 48 | + container: ubuntu:20.04 |
| 49 | + |
| 50 | + strategy: |
| 51 | + fail-fast: false |
| 52 | + matrix: |
| 53 | + node-version: ['18.17', 18, 20, 22] |
| 54 | + |
| 55 | + steps: |
| 56 | + - uses: actions/checkout@v3 |
| 57 | + - name: Use Node.js ${{ matrix.node-version }} |
| 58 | + uses: actions/setup-node@v3 |
| 59 | + with: |
| 60 | + node-version: ${{ matrix.node-version }} |
| 61 | + - name: Setup dependencies |
| 62 | + run: | |
| 63 | + apt-get update |
| 64 | + apt-get -y install python3 g++ make |
| 65 | + env: |
| 66 | + DEBIAN_FRONTEND: noninteractive |
| 67 | + - run: npm install |
| 68 | + - run: npm test |
| 69 | + - name: Link the package |
| 70 | + run: npm link |
| 71 | + - name: Check the example |
| 72 | + run: | |
| 73 | + cd example |
| 74 | + npm install --ignore-scripts |
| 75 | + npm link nobind17 |
| 76 | + npx node-gyp configure build --debug |
| 77 | + node -p "require('./lib/hello.node').hello('Garga')" |
| 78 | + npx node-gyp configure build |
| 79 | + node -p "require('./lib/hello.node').hello('Garga')" |
| 80 | + npx tsx hello.ts |
| 81 | + shell: bash |
| 82 | + |
| 83 | + |
49 | 84 | options: |
50 | 85 | runs-on: ${{ matrix.platform }} |
51 | 86 |
|
|
0 commit comments