Skip to content

1.16.0

1.16.0 #98

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
jobs:
build:
name: Build
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
os: [windows-2019]
include:
- os: windows-2019
friendlyName: Windows
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Node.js
uses: actions/setup-node@v2.1.2
with:
node-version: 12
# This step can be removed as soon as official Windows arm64 builds are published:
# https://github.com/nodejs/build/issues/2450#issuecomment-705853342
- run: |
$NodeVersion = (node --version) -replace '^.'
$NodeFallbackVersion = "15.8.0"
& .\script\download-node-lib-win-arm64.ps1 $NodeVersion $NodeFallbackVersion
name: Install Windows arm64 node.lib
- name: Install and build dependencies
run: yarn
- name: Lint
run: yarn check-prettier
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Prebuild x64
run: npm run prebuild-napi-x64
- name: Prebuild arm64
run: npm run prebuild-napi-arm64
- name: Prebuild x86
run: npm run prebuild-napi-ia32
- name: Publish
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: yarn upload
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}