From 00a84423eb936c8aaa982df10f7b120eb861ac5f Mon Sep 17 00:00:00 2001 From: Essem Date: Thu, 20 Jan 2022 23:48:35 -0600 Subject: [PATCH] Added new test build CI script --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++ .github/workflows/codeql-analysis.yml | 4 +-- 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..22f60ed --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 859aa5b..0fc187a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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