File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 run : npm run compile
3636 - name : Test
3737 run : npm test
38+ build-linux-arm :
39+ runs-on : ubuntu-latest
40+ needs : create_release
41+ steps :
42+ - name : checkout
43+ uses : actions/checkout@v2
44+ with :
45+ fetch-depth : 0
46+ - name : Set up QEMU
47+ uses : docker/setup-qemu-action@v2
48+ - name : Cache Node Dependencies
49+ id : cache
50+ uses : actions/cache@v2
51+ with :
52+ path : ./node_modules
53+ key : modules-${{ hashFiles('package-lock.json') }}
54+ - name : Build for arm
55+ run : docker run --platform linux/arm --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild.sh
Original file line number Diff line number Diff line change 1414 "clean" : " rm -rf build" ,
1515 "precompile" : " npm i --no-save node-addon-api cmake-js" ,
1616 "compile" : " cmake-js compile" ,
17+ "precompile-drm" : " npm i --no-save node-addon-api cmake-js" ,
18+ "compile-drm" : " cmake-js compile --CDPLATFORM=DRM" ,
1719 "prepkg" : " npm run build" ,
1820 "pkg" : " node tools/pkg.js" ,
1921 "gen:code" : " node tools/generate.js" ,
Original file line number Diff line number Diff line change 66apt-get update
77apt-get install -y xorg-dev libglu1-mesa-dev cmake
88npm ci
9- npm run compile
9+ npm run compile
10+ npm run compile-drm
You can’t perform that action at this time.
0 commit comments