-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (43 loc) · 1.42 KB
/
test.yml
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
43
44
45
46
47
48
49
50
51
52
53
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test (${{ matrix.os }}, Node v${{ matrix.node }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest] # windows-latest has a bug with makefile (cc command not found)
node: [18, 20]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install distutils
run: python -m pip install setuptools
- uses: Jimver/[email protected]
with:
sub-packages: '["nvcc"]'
method: network
if: matrix.os == 'windows-latest'
- name: Add msys64 to PATH
run: echo "/c/msys64/mingw64/bin:/c/msys64/usr/bin" >> $GITHUB_PATH
if: matrix.os == 'windows-latest'
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
run_install: true
- name: Build All
run: pnpm makelib && pnpm build
- name: Test
run: pnpm test