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 Pre-build Packages for Darwin | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
environment: release | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Install libomp | |
run: | | |
brew install libomp | |
brew info libomp | |
- name: Setup Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: NPM Install | |
run: npm ci --ignore-scripts | |
- name: Build & test | |
run: npm run build:test | |
- name: Build Release | |
run: npm run prebuild-package -- --all | |
- name: Get Version | |
id: version | |
run : | | |
VERSION=$(node -p -e "require('./package.json').version") | |
echo $VERSION | |
echo VERSION=$VERSION >> "$GITHUB_OUTPUT" | |
- name: Upload to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
fail_on_unmatched_files: true | |
files: prebuilds/*.tar.gz | |
tag_name: "v${{ steps.version.outputs.VERSION }}" |