nodeguy/.github/workflows/prebuild.yml
Atul R 626045549f
Fix/windows addon lib (#369)
* Adds libs and exp to windows addon building

* fixes refex on windows prebuilt

* 0.13.1
2020-01-25 21:52:15 +01:00

36 lines
1.3 KiB
YAML

on:
repository_dispatch:
types: [on-demand-build]
release:
types: [published, created, prereleased]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@master
with:
node-version: '13.x'
- name: Install deps
run: npm install
env:
SKIP_BUILD: 1
- name: Change version if master
if: contains(github.event.client_payload.tag, '0.0.0-latest-master')
run: npm --no-git-tag-version version 0.0.0-latest-master
- name: Prebuild binary
run: npx prebuild --all --backend=cmake-js --strip --runtime=napi --include-regex="\.[n,e,l][a-z]*$"
- name: Release
uses: softprops/action-gh-release@master
with:
files: prebuilds/@nodegui/*.tar.gz
tag_name: ${{ github.event.release.tag_name || github.event.client_payload.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}