insomnia/.github/workflows/main.yml
2019-10-17 16:32:09 -04:00

87 lines
2.7 KiB
YAML

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:
node-version: 10
- 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
- name: Bootstrap packages
run: npm run bootstrap
- name: Run tests
run: npm test
- name: Release app
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF: ${{ github.event.ref }}
CSC_LINK: ${{ secrets.WINDOWS_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CSC_KEY_PASSWORD }}
run: npm run app-release
Mac:
name: Mac
runs-on: macOS-latest
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Install NodeJS
uses: actions/setup-node@v1
with:
node-version: 10
- name: Bootstrap packages
run: npm run bootstrap
- name: Run tests
run: npm test
- name: Release app
run: npm run app-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF: ${{ github.event.ref }}
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 }}
Ubuntu14:
name: Linux (Generic)
runs-on: ubuntu-16.04
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Run Docker
uses: ./.github/actions/build-linux
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF: ${{ github.event.ref }}
BUILD_TARGETS: AppImage,deb,tar.gz,rpm
NODELIBCURL_BUILD_STATIC: yes
Ubuntu16:
name: Linux (Snap)
runs-on: ubuntu-16.04
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Run Docker
uses: ./.github/actions/build-snap
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF: ${{ github.event.ref }}
SNAPCRAFT_LOGIN_FILE: ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
BUILD_TARGETS: snap
NODELIBCURL_BUILD_STATIC: yes