fix mac build (#324)
* only run docs CI when docs change * remove broken windows CI, fix mac build
This commit is contained in:
parent
3795c85a7d
commit
a3e3e4248c
3 changed files with 11 additions and 30 deletions
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
|
@ -26,36 +26,15 @@ jobs:
|
|||
- name: Build
|
||||
run: pnpm install --config.strict-peer-dependencies=false && pnpm run build
|
||||
|
||||
win64:
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Setup Scoop
|
||||
uses: MinoruSekine/setup-scoop@v1
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v2.1.2
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v2.2.2
|
||||
with:
|
||||
version: 7
|
||||
- name: Install Dependencies
|
||||
run: scoop install libvips imagemagick
|
||||
- name: Build
|
||||
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
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v2.2.2
|
||||
with:
|
||||
version: 7
|
||||
uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
run: brew install imagemagick vips
|
||||
run: |
|
||||
brew install imagemagick vips node pnpm npm
|
||||
pnpm install --config.strict-peer-dependencies=false
|
||||
- name: Build
|
||||
run: pnpm install --config.strict-peer-dependencies=false && pnpm run build
|
||||
run: pnpm run build
|
||||
|
||||
|
|
2
.github/workflows/mkdocs.yml
vendored
2
.github/workflows/mkdocs.yml
vendored
|
@ -3,6 +3,8 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'docs/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
|
@ -29,7 +29,7 @@ target_link_libraries(${PROJECT_NAME} ${ImageMagick_LIBRARIES})
|
|||
pkg_check_modules(VIPS REQUIRED vips-cpp)
|
||||
include_directories(${VIPS_INCLUDE_DIRS})
|
||||
link_directories(${VIPS_LIBRARY_DIRS})
|
||||
target_link_libraries(${PROJECT_NAME} ${VIPS_LIBRARIES})
|
||||
target_link_libraries(${PROJECT_NAME} ${VIPS_LDFLAGS})
|
||||
|
||||
if(MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
|
||||
# Generate node.lib
|
||||
|
|
Loading…
Reference in a new issue