Skip to content

Merge pull request #190 from bentruyman/fix-postinstall #189

Merge pull request #190 from bentruyman/fix-postinstall

Merge pull request #190 from bentruyman/fix-postinstall #189

Workflow file for this run

name: Test
on: [push]
jobs:
style:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- name: Code Style Check
run: npx -y prettier -c .
# run: npx @biomejs/biome format . # do this after we move to biome config
build:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
os: [ubuntu, macos, windows]
runs-on: ${{ matrix.os }}-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node Dependencies
id: cache
uses: actions/cache@v2
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
- name: Install Node Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts
- name: Install System Dependencies
if: matrix.os == 'ubuntu'
run: sudo apt-get update && sudo apt-get install -y xorg-dev libglu1-mesa-dev
- name: Build Node Addon
run: npm run compile
- name: Test
run: npm test
build-linux-arm:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Cache Node Dependencies
id: cache
uses: actions/cache@v2
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
- name: Build for arm
run: docker run --platform linux/arm --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild.sh
build-linux-arm-drm:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Cache Node Dependencies
id: cache
uses: actions/cache@v2
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
- name: Build for arm
run: docker run --platform linux/arm --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild-drm.sh