Package MacOS ARM64 against v0.11.8-beta.1 #9
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: "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 }} |