2020-12-19 13:38:59 +01:00
|
|
|
name: CI
|
|
|
|
on: [ push ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-12-19 14:55:18 +01:00
|
|
|
os: [ windows-latest]
|
2020-12-19 13:38:59 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js 14
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 14.x
|
|
|
|
- name: Get npm cache directory
|
|
|
|
id: npm-cache
|
|
|
|
run: |
|
|
|
|
echo "::set-output name=dir::$(npm config get cache)"
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ${{ steps.npm-cache.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-node-
|
|
|
|
- name: Intall dependencies
|
|
|
|
run: npm ci
|
|
|
|
- run: npm run make --if-present
|
2021-01-01 18:18:00 +01:00
|
|
|
# - uses: actions/upload-artifact@v2
|
|
|
|
# with:
|
|
|
|
# name: Artifact
|
|
|
|
# path: out\make\squirrel.windows\x64
|
|
|
|
# if-no-files-found: error
|