Skip to content

fix: configure napi binary name and update binding loader #2180

fix: configure napi binary name and update binding loader

fix: configure napi binary name and update binding loader #2180

Workflow file for this run

name: Continuous integration
on:
push:
branches: [ '**' ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ '**' ]
jobs:
Runner:
runs-on: ${{ matrix.ci-type.os }}
strategy:
fail-fast: false
matrix:
ci-type: [
{os: "windows-latest", arch: "x64"},
{os: "macos-latest", arch: "x64"},
{os: "ubuntu-latest", arch: "x64"},
]
node-version: [ 18, 20, 22, 24 ]
binding: [ cpp, rust ]
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Checkout Git Source
uses: actions/checkout@master
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
if: ${{ matrix.ci-type.os == 'windows-latest' }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
if: ${{ matrix.binding == 'rust' }}
- name: Install Dependencies
run: npm install
- name: Build C++ Binding
if: ${{ matrix.binding == 'cpp' }}
run: npm run build
- name: Build Rust Binding
if: ${{ matrix.binding == 'rust' }}
run: npm run build:rs
- name: Test C++ Binding
if: ${{ matrix.binding == 'cpp' }}
run: npm test
- name: Test Rust Binding
if: ${{ matrix.binding == 'rust' }}
run: npm run test:rs
- name: Code Coverage
if: ${{ matrix.binding == 'cpp' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Package Binary
# run: npm run pack
# - name: Draft Release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: release/**
# fail_on_unmatched_files: true
# draft: true