fix(*): CXXABI error when running the library #50
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: Automated deploy | |
on: | |
release: | |
types: [created] | |
# testing purpose | |
pull_request: | |
branches: | |
- '**' | |
env: | |
VERSION: ${{ github.event.release.tag_name }} | |
TARGET_REF: ${{ github.event.release.target_commitish }} | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: darwin | |
os: macos-11 | |
node_arch: x64 | |
command: prebuildify | |
args: --arch x64+arm64 | |
- name: win32-x86 | |
os: windows-2019 | |
node_arch: x86 | |
command: prebuildify | |
- name: win32-x64 | |
os: windows-2019 | |
node_arch: x64 | |
command: prebuildify | |
- name: linux-x64 | |
os: ubuntu-latest | |
command: prebuildify-cross | |
args: -i centos7-devtoolset7 -i alpine | |
- name: linux-arm | |
os: ubuntu-latest | |
command: prebuildify-cross | |
args: -i linux-arm64-lts -i linux-armv7 -i linux-armv6 | |
- name: android-arm | |
os: ubuntu-latest | |
command: prebuildify-cross | |
args: -i android-arm64 -i android-armv7 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ env.TARGET_REF }} | |
token: ${{ secrets.GPR_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
architecture: ${{ matrix.node_arch }} | |
# https://github.com/nodejs/node-gyp/blob/main/docs/Updating-npm-bundled-node-gyp.md#windows | |
- name: Update node-gyp (windows) | |
shell: pwsh | |
if: ${{ startsWith(matrix.os, 'windows') }} | |
run: | | |
# Find the location of node.exe | |
$nodeExeLocation = Get-Command node | Select-Object -ExpandProperty Source | |
# Extract the directory path from the node.exe location | |
$nodeDir = $nodeExeLocation | Split-Path | |
# Install node-gyp | |
npm i --prefix "$nodeDir\node_modules\npm\node_modules\npm-lifecycle" node-gyp@9.4.0 | |
- name: Update node-gyp (non-windows) | |
if: ${{ !startsWith(matrix.os, 'windows') }} | |
run: npm explore npm/node_modules/npm-lifecycle -g -- npm install node-gyp@latest | |
- name: Install dependencies | |
run: npm ci | |
- name: Prebuild package | |
run: npm run ${{ matrix.command }} -- ${{ matrix.args }} | |
- name: Check packages | |
run: npx shx ls -lA |