2021-03-23 23:19:44 +01:00
|
|
|
name: CI
|
2020-07-02 08:51:34 +02:00
|
|
|
|
2021-03-23 23:19:44 +01:00
|
|
|
on:
|
|
|
|
# Trigger the workflow on push or pull request,
|
|
|
|
# but only for the master branch
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-03-24 21:30:14 +01:00
|
|
|
tags:
|
|
|
|
- '*'
|
2021-03-23 23:19:44 +01:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-07-02 08:51:34 +02:00
|
|
|
|
|
|
|
jobs:
|
2021-03-23 23:19:44 +01:00
|
|
|
build-linux:
|
|
|
|
name: Linux
|
|
|
|
runs-on: ubuntu-18.04
|
2020-07-02 08:51:34 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '12.x'
|
2021-03-23 23:19:44 +01:00
|
|
|
- name: Install dependencies
|
|
|
|
run: sudo apt-get install libx11-dev zlib1g-dev libpng-dev libxtst-dev
|
|
|
|
- name: Build it
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
npm run dist
|
|
|
|
build-mac:
|
|
|
|
name: macOS
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '12.x'
|
|
|
|
- name: Fixup Xcode
|
|
|
|
# https://github.com/actions/virtual-environments/issues/2557
|
|
|
|
run: |
|
|
|
|
sudo xcode-select -s "/Applications/Xcode_12.4.app"
|
|
|
|
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
|
|
|
|
- name: Build it
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
npm run lint
|
|
|
|
npm run dist
|
|
|
|
build-windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '12.x'
|
|
|
|
- name: Build it
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
npm run dist
|