mrmBot-Matrix/.github/workflows/build.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2022-01-21 05:48:35 +00:00
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@v1
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
- name: Install ImageMagick # necessary because ubuntu doesn't include IM7 in its repository
run: git clone https://github.com/ImageMagick/ImageMagick && cd ImageMagick && ./configure --with-magick-plus-plus=yes && make -j`nproc` && sudo make install && sudo ldconfig /usr/local/lib
2022-01-21 05:48:35 +00:00
- name: Build
run: npm install && npm run build
win32:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
- name: Install ImageMagick
run: choco install imagemagick -PackageParameters InstallDevelopmentHeaders=true
- name: Build
run: npm install && npm 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: Install ImageMagick
run: brew install imagemagick
- name: Build
run: npm install && npm run build