71 lines
1.7 KiB
YAML
71 lines
1.7 KiB
YAML
name: Build Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
jobs:
|
|
linux:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v2.1.2
|
|
with:
|
|
cache: 'pnpm'
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2.2.2
|
|
with:
|
|
version: 7
|
|
- name: Install dependencies
|
|
run: sudo apt install libvips-dev libmagick++-dev
|
|
- name: Build
|
|
run: pnpm install --config.strict-peer-dependencies=false && pnpm run build
|
|
|
|
win64:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Setup MSYS2
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: MINGW64
|
|
path-type: inherit
|
|
update: true
|
|
install: git mingw-w64-x86_64-cc mingw-w64-x86_64-libvips mingw-w64-x86_64-imagemagick
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v2.1.2
|
|
with:
|
|
cache: 'pnpm'
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2.2.2
|
|
with:
|
|
version: 7
|
|
- name: Build
|
|
shell: msys2 {0}
|
|
run: $PNPM_HOME/pnpm install --config.strict-peer-dependencies=false && $PNPM_HOME/pnpm 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
|
|
with:
|
|
cache: 'pnpm'
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2.2.2
|
|
with:
|
|
version: 7
|
|
- name: Install dependencies
|
|
run: brew install imagemagick vips
|
|
- name: Build
|
|
run: pnpm install --config.strict-peer-dependencies=false && pnpm run build
|