Skip to content

Package MacOS ARM64 against v0.11.3 #2

Package MacOS ARM64 against v0.11.3

Package MacOS ARM64 against v0.11.3 #2

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:
buildify:
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 install --ignore-scripts
env JOBS=max node .prebuild/buildify.js
- name: List
shell: bash
run: |
find .
- name: Check prebuilds exist
shell: bash
run: |
fileCount=$(ls prebuilds/*/*node | wc -l)
echo "Prebuild count ${fileCount}"
if [ "$fileCount" -eq 0 ]; then exit 1; fi
- name: Package for GitHub Release
shell: bash
run: for i in `ls prebuilds/`; do tar cvzf prebuilds-$i.tar.gz prebuilds/$i; done
- uses: AButler/[email protected]
with:
files: 'prebuilds-*tar.gz'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.inputs.tag }}