Added new test build CI script

This commit is contained in:
Essem 2022-01-20 23:48:35 -06:00
parent 715ed3bb7b
commit 00a84423eb
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 49 additions and 2 deletions

47
.github/workflows/build.yml vendored Normal file
View 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

View file

@ -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.
#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: git clone https://github.com/ImageMagick/ImageMagick && cd ImageMagick && ./configure && make -j`nproc` && sudo make install && sudo ldconfig /usr/local/lib
# - 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
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL