Add GitHub actions CI scripts

This commit is contained in:
Marquis Kurt 2019-09-25 17:25:34 -04:00
parent ee2843eff4
commit 65e0fea610
No known key found for this signature in database
GPG Key ID: 725636D259F5402D
4 changed files with 89 additions and 0 deletions

21
.github/workflows/ci/linux.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Build Linux Client
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone source code
uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies and build
run: |
npm install
npm run build --if-present
npm run build-desktop-linux

21
.github/workflows/ci/mac.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Build macOS Client
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
steps:
- name: Clone source code
uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies and build
run: |
npm install
npm run build --if-present
npm run build-desktop-darwin-nosign

26
.github/workflows/ci/standard.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- name: Clone source code
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies and build
run: |
npm install
npm run build --if-present
env:
CI: true

21
.github/workflows/ci/win.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Build Windows Client
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- name: Clone source code
uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies and build
run: |
npm install
npm run build --if-present
npm run build-desktop-win