-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 921 Bytes
/
linux.yml
File metadata and controls
42 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
36
37
38
39
40
41
42
name: Linux Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Linux x64 (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '22']
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake libopencv-dev llvm clang libclang-dev
echo "LIBCLANG_PATH=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
- name: Install npm dependencies
run: npm install --ignore-scripts
- name: Build (debug)
run: npm run build:debug
- name: Run tests
run: npm test