Merge pull request #1 from ron-a20/ron-a20-patch-1 #311
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: NODE=$(which node) make doc-only | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: docs | |
path: out/doc | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Environment Information | |
run: npx envinfo | |
- name: Build | |
run: ./configure && make -j2 | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Environment Information | |
run: npx envinfo | |
- name: Install deps | |
run: choco install nasm | |
- name: Build | |
run: ./vcbuild.bat | |
build-macOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Environment Information | |
run: npx envinfo | |
- name: Build | |
run: ./configure && make -j8 | |
lint-addon-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 10 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: Lint addon docs | |
run: NODE=$(which node) make lint-addon-docs | |
lint-cpp: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Lint C/C++ files | |
run: make lint-cpp | |
lint-md: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 10 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: Lint docs | |
run: NODE=$(which node) make lint-md | |
lint-js: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 10 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: Lint JavaScript files | |
run: NODE=$(which node) make lint-js |