forked from TimoKunze/node-printer
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 921 Bytes
/
Copy pathci-pr.yml
File metadata and controls
35 lines (33 loc) · 921 Bytes
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
name: CI for Pull Requests
permissions:
contents: read
on:
pull_request:
jobs:
prebuild:
name: Prebuild Binaries
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
arch: [x64]
node: [20.x, 22.x, 23.x, 24.x, 25.x, 26.x]
exclude:
- os: windows-latest
node: 23.x
timeout-minutes: 30
steps:
- if: ${{ matrix.os == 'ubuntu-latest' }}
name: Setup Dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y g++-multilib gcc-multilib libcups2-dev linux-libc-dev
- uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v5
- run: npm i
- name: Prebuild
run: |
npm run apply-patches
npm run prebuild -- --strip --arch ${{ matrix.arch }}