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

72 lines
1.7 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-22.04
2022-01-21 05:48:35 +00:00
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
2022-06-14 05:51:45 +00:00
with:
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
2022-06-14 05:51:45 +00:00
with:
version: 7
2022-06-07 23:02:44 +00:00
- name: Install dependencies
run: sudo apt install libvips-dev libmagick++-dev
2022-01-21 05:48:35 +00:00
- name: Build
2022-06-23 03:10:39 +00:00
run: pnpm install --config.strict-peer-dependencies=false && pnpm run build
2022-01-21 05:48:35 +00:00
win64:
2022-01-21 05:48:35 +00:00
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
2022-06-22 17:23:00 +00:00
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
2022-06-24 23:04:05 +00:00
with:
msystem: MINGW64
path-type: inherit
2022-06-24 23:04:05 +00:00
update: true
install: git mingw-w64-x86_64-cc mingw-w64-x86_64-libvips mingw-w64-x86_64-imagemagick
2022-01-21 05:48:35 +00:00
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
2022-06-14 05:51:45 +00:00
with:
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
2022-06-14 05:51:45 +00:00
with:
version: 7
2022-01-21 05:48:35 +00:00
- name: Build
2022-06-22 17:23:00 +00:00
shell: msys2 {0}
2022-06-24 22:39:13 +00:00
run: $PNPM_HOME/pnpm install --config.strict-peer-dependencies=false && $PNPM_HOME/pnpm run build
2022-01-21 05:48:35 +00:00
darwin:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
2022-06-14 05:51:45 +00:00
with:
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
2022-06-14 05:51:45 +00:00
with:
version: 7
2022-06-07 23:02:44 +00:00
- name: Install dependencies
2022-07-26 03:09:56 +00:00
run: brew install imagemagick vips
2022-01-21 05:48:35 +00:00
- name: Build
2022-06-23 03:10:39 +00:00
run: pnpm install --config.strict-peer-dependencies=false && pnpm run build