2022-01-21 05:48:35 +00:00
|
|
|
name: Build Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Setup Node.js environment
|
|
|
|
uses: actions/setup-node@v2.1.2
|
|
|
|
- name: Install ImageMagick # necessary because ubuntu doesn't include IM7 in its repository
|
2022-06-07 22:59:31 +00:00
|
|
|
run: sudo apt install libvips-dev libmagick++-dev
|
2022-01-21 05:48:35 +00:00
|
|
|
- name: Build
|
|
|
|
run: npm install && npm run build
|
|
|
|
|
|
|
|
win32:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Setup Node.js environment
|
|
|
|
uses: actions/setup-node@v2.1.2
|
|
|
|
- name: Install ImageMagick
|
|
|
|
run: choco install imagemagick -PackageParameters InstallDevelopmentHeaders=true
|
|
|
|
- name: Build
|
|
|
|
run: npm install && npm run build
|
|
|
|
|
|
|
|
darwin:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Setup Node.js environment
|
|
|
|
uses: actions/setup-node@v2.1.2
|
|
|
|
- name: Install ImageMagick
|
2022-06-07 22:59:31 +00:00
|
|
|
run: brew install imagemagick vips
|
2022-01-21 05:48:35 +00:00
|
|
|
- name: Build
|
|
|
|
run: npm install && npm run build
|