2019-08-22 06:59:06 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-2016
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2019-10-08 23:47:53 +00:00
|
|
|
node-version: 10
|
2019-10-09 20:31:42 +00:00
|
|
|
- name: Install node tools
|
|
|
|
run: npm install --global --production windows-build-tools@4.0.0
|
|
|
|
- name: Install node-gyp
|
|
|
|
run: npm install --global node-gyp@latest
|
|
|
|
- name: Set node config to use python2.7
|
|
|
|
run: npm config set python python2.7
|
|
|
|
- name: Set node config to set msvs_version to 2015
|
|
|
|
run: npm config set msvs_version 2015
|
|
|
|
- name: Work around for Windows Server 2019
|
|
|
|
run: set path=%path%;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
|
2019-08-22 06:59:06 +00:00
|
|
|
- name: Bootstrap packages
|
|
|
|
run: npm run bootstrap
|
|
|
|
- name: Run tests
|
|
|
|
run: npm test
|
2019-10-09 20:31:42 +00:00
|
|
|
- name: Release app
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_REF: ${{ github.event.ref }}
|
2019-10-09 21:09:16 +00:00
|
|
|
CSC_LINK: ${{ secrets.WINDOWS_CSC_LINK }}
|
|
|
|
CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CSC_KEY_PASSWORD }}
|
2019-10-09 20:31:42 +00:00
|
|
|
run: npm run app-release
|
2019-08-22 06:59:06 +00:00
|
|
|
Mac:
|
|
|
|
name: Mac
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2019-10-08 23:47:53 +00:00
|
|
|
node-version: 10
|
2019-08-22 06:59:06 +00:00
|
|
|
- name: Bootstrap packages
|
|
|
|
run: npm run bootstrap
|
|
|
|
- name: Run tests
|
|
|
|
run: npm test
|
2019-10-09 20:31:42 +00:00
|
|
|
- name: Release app
|
|
|
|
run: npm run app-release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_REF: ${{ github.event.ref }}
|
2019-10-09 21:09:16 +00:00
|
|
|
CSC_LINK: ${{ secrets.MAC_CSC_LINK }}
|
|
|
|
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }}
|
|
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
|
|
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
2019-10-10 00:46:41 +00:00
|
|
|
Ubuntu14:
|
2019-10-10 18:34:43 +00:00
|
|
|
name: Linux (Generic)
|
2019-08-22 06:59:06 +00:00
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v1
|
2019-10-09 20:31:42 +00:00
|
|
|
- name: Run Docker
|
2019-10-10 23:28:04 +00:00
|
|
|
uses: ./.github/actions/build-linux
|
2019-10-10 00:46:41 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_REF: ${{ github.event.ref }}
|
2019-10-10 17:40:44 +00:00
|
|
|
BUILD_TARGETS: AppImage,deb,tar.gz,rpm
|
|
|
|
NODELIBCURL_BUILD_STATIC: yes
|
2019-10-10 00:46:41 +00:00
|
|
|
Ubuntu16:
|
2019-10-10 18:34:43 +00:00
|
|
|
name: Linux (Snap)
|
2019-10-10 00:46:41 +00:00
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Run Docker
|
2019-10-10 23:28:04 +00:00
|
|
|
uses: ./.github/actions/build-snap
|
2019-10-09 20:31:42 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_REF: ${{ github.event.ref }}
|
2019-10-17 20:32:09 +00:00
|
|
|
SNAPCRAFT_LOGIN_FILE: ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
|
2019-10-10 17:40:44 +00:00
|
|
|
BUILD_TARGETS: snap
|
|
|
|
NODELIBCURL_BUILD_STATIC: yes
|