-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.01 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build
on:
create:
tags:
- v*
jobs:
test:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v3
with:
node-version: latest
- uses: actions/checkout@v3
- name: Cache .pnpm-store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install Node deps
run: |
npm i -g pnpm node-gyp
- run: pnpm install
env:
NO_PREBUILD: true
- name: Sync duktape subrepo
run: git submodule update --init --recursive
- name: Build Addon
run: node-gyp rebuild
- name: Package
run: node scripts/prebuild.js pack
- name: Upload prebuilt binary
uses: softprops/action-gh-release@v1
with:
files: prebuilds/*
token: ${{ secrets.GH_TOKEN }}