Build #7
Workflow file for this run
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: 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 }} |