Merge branch 'master' of github.com:esmBot/esmBot
This commit is contained in:
commit
6f35578451
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
|
||||
|
||||
|
|
4
.github/workflows/mkdocs.yml
vendored
4
.github/workflows/mkdocs.yml
vendored
|
@ -3,6 +3,8 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'docs/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -16,4 +18,4 @@ jobs:
|
|||
uses: mhausenblas/mkdocs-deploy-gh-pages@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REQUIREMENTS: docs/requirements.txt
|
||||
REQUIREMENTS: docs/requirements.txt
|
||||
|
|
|
@ -29,9 +29,9 @@ 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
|
||||
execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS})
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue