Skip to content

Bump pcre2 from 9323329 to 81dced9 #1632

Bump pcre2 from 9323329 to 81dced9

Bump pcre2 from 9323329 to 81dced9 #1632

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
release:
types: [ created ]
env:
WASI_VERSION: 15
WABT_VERSION: 1.0.29
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: set WASI_VERSION_FULL
run: echo "WASI_VERSION_FULL=${WASI_VERSION}.0" >> $GITHUB_ENV
- name: set WASI_SDK_PATH
run: echo "WASI_SDK_PATH=/tmp/wasi-sdk-${WASI_VERSION_FULL}" >> $GITHUB_ENV
- name: Install WASI-SDK
run: cd /tmp && wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz && sudo tar -xvf wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz -C /tmp
- name: Install wabt
run: cd /tmp && wget https://github.com/WebAssembly/wabt/releases/download/${WABT_VERSION}/wabt-${WABT_VERSION}-ubuntu.tar.gz && tar -xvf wabt-${WABT_VERSION}-ubuntu.tar.gz && echo "$(pwd)/wabt-${WABT_VERSION}/bin/" >> $GITHUB_PATH
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: echo "${WASI_SDK_PATH}/bin" >> $GITHUB_PATH
- run: echo $PATH
- run: npm ci
- run: CC="${WASI_SDK_PATH}/bin/clang --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot" npm run compile
- run: npm run build --if-present
- run: npm test
- run: wasm-validate --disable-mutable-globals --disable-bulk-memory pkg/out.wasm
- uses: actions/upload-artifact@v4
with:
name: pkg-${{ matrix.node-version }}
path: pkg/
if-no-files-found: error
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: node_modules/.bin/eslint .
release:
if: github.event_name == 'release' && github.event.action == 'created'
needs: [ build ]
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@jayay'
- run: npm ci
- uses: actions/download-artifact@v4
with:
name: pkg-18.x
path: pkg
- run: npm run release
env:
PACKAGE_VERSION: ${{ github.ref_name }}
- run: npm publish pkg/
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}