2023-03-15 14:09:09 +00:00
|
|
|
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 pnpm
|
|
|
|
uses: pnpm/action-setup@v2.2.2
|
|
|
|
with:
|
|
|
|
version: 7
|
|
|
|
- name: Setup Node.js environment
|
|
|
|
uses: actions/setup-node@v2.1.2
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
|
|
run: sudo apt update && sudo apt install -y cmake libvips-dev libmagick++-dev
|
|
|
|
- name: Build
|
|
|
|
run: pnpm install --frozen-lockfile && pnpm run build
|
|
|
|
|
|
|
|
darwin:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
brew install imagemagick vips node pnpm npm
|
|
|
|
pnpm install --config.strict-peer-dependencies=false
|
|
|
|
- name: Build
|
|
|
|
run: pnpm run build
|
|
|
|
|