build: Use local module to find libwebp #227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 9.4.0 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: sudo apt update && sudo apt install -y cmake libvips-dev libmagick++-dev libzxingcore-dev libwebp-dev | |
- name: Build | |
run: pnpm install --frozen-lockfile --no-optional && pnpm run build | |
darwin: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 9.4.0 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: brew install imagemagick vips webp | |
- name: Build | |
run: pnpm install --frozen-lockfile --no-optional && pnpm run build --CDWITH_ZXING=OFF | |