Skip to content
name: Build Pre-build Packages for Windows
on:
workflow_dispatch:
push:
tags:
- "*"
env:
MKLROOT: 'C:\Program Files (x86)\Intel\oneAPI\mkl\latest'
jobs:
build:
environment: release
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
- name: Install MKL
run: .github/workflows/install_mkl_windows.bat "https:/registrationcenter-download.intel.com/akdlm/IRC_NAS/c961e083-5685-4f0b-ada5-c6cf16f561dd/w_BaseKit_p_2023.1.0.47256_offline.exe" "intel.oneapi.win.mkl.devel"
- 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
ls build/Release
- 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 >> $env: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 }}"