forked from Timeular/noble-winrt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/kuyoonjo/noble-winrt
- Loading branch information
Showing
1 changed file
with
11 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,14 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
name: Build | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: clang-format lint | ||
# You may pin to the exact commit or the version. | ||
# uses: DoozyX/clang-format-lint-action@84b814a54950e27ac65a62069802df099405ef77 | ||
uses: DoozyX/[email protected] | ||
with: | ||
# Source folder to check formatting | ||
source: './src' # optional, default is . | ||
# Version of clang-format | ||
# clangFormatVersion: # optional, default is 9 | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: windows-2016 | ||
|
@@ -41,9 +20,15 @@ jobs: | |
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 13.x | ||
node-version: 16.20.x | ||
- name: Setup | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn build:source | ||
yarn ci | ||
npm --loglevel=error i | ||
npm run build:source | ||
npm ci${{ secrets.MY_GITHUB_TOKEN }} | ||
- name: Build | ||
shell: powershell | ||
run: | | ||
npm --loglevel=error i -g prebuild 2>&1 | write-host | ||
prebuild -t 8 -r napi --upload ${{ secrets.MY_GITHUB_TOKEN }} 2>&1 | write-host | ||
echo "done." |