forked from microsoft/node-pty
-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (35 loc) · 1.17 KB
/
prebuildMacOSArm.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
name: "Prebuild node-gyp MacOS ARM64 Binaries and package for a GitHub Release"
run-name: Package MacOS ARM64 against ${{ github.event.inputs.tag }}
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true
jobs:
build:
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: macOS - Prebuild Binaries
if: runner.os == 'macOS'
run: |
npm ci --ignore-scripts
env JOBS=max node .prebuild/build.js
- name: Check prebuilds exist
shell: bash
run: |
fileCount=$(ls prebuilds/*/node-pty*tar.gz | wc -l)
echo "Prebuild count ${fileCount}"
echo "::notice::Prebuild count ${fileCount}, expected 25"
if [ "$fileCount" -eq 0 ]; then exit 1; fi
if [ "$fileCount" -ne 25 ]; then exit 1; fi
- uses: AButler/[email protected]
name: Upload Release Artifacts to ${{ github.event.inputs.tag }}
with:
files: 'prebuilds/*/node-pty*tar.gz'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.inputs.tag }}