Added new test build CI script
This commit is contained in:
parent
715ed3bb7b
commit
00a84423eb
2 changed files with 49 additions and 2 deletions
47
.github/workflows/build.yml
vendored
Normal file
47
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
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/SoftCreatR/imei ~/imei && cd ~/imei && sudo chmod +x imei.sh && sudo ./imei.sh
|
||||||
|
- 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
|
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
|
@ -53,8 +53,8 @@ jobs:
|
||||||
# Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user.
|
# Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user.
|
||||||
#token: # optional, default is ${{ github.token }}
|
#token: # optional, default is ${{ github.token }}
|
||||||
|
|
||||||
- run: sudo apt-get update && sudo apt-get install -y git gcc g++ libjpeg-dev libwebp-dev libpango1.0 libpango1.0-dev ffmpeg
|
# - run: sudo apt-get update && sudo apt-get install -y git gcc g++ libjpeg-dev libwebp-dev libpango1.0 libpango1.0-dev ffmpeg
|
||||||
- run: git clone https://github.com/ImageMagick/ImageMagick && cd ImageMagick && ./configure && make -j`nproc` && sudo make install && sudo ldconfig /usr/local/lib
|
# - run: git clone https://github.com/ImageMagick/ImageMagick && cd ImageMagick && ./configure && make -j`nproc` && sudo make install && sudo ldconfig /usr/local/lib
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|
Loading…
Reference in a new issue