wasmer-napi 0.702.0

NAPI library for Wasmer WebAssembly runtime
name: napi-wasmer-quickjs

on:
  push:
    branches:
      - main
  pull_request:
  workflow_dispatch:

jobs:
  quickjs-native-linux:
    name: quickjs-native-linux-${{ matrix.build_type }}
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        build_type: [Release, Debug]
    env:
      SCCACHE_GHA_ENABLED: "true"
      CC: clang
      CXX: clang++
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - name: Setup sccache
        uses: mozilla-actions/sccache-action@v0.0.9

      - name: Build native QuickJS N-API
        run: make build-napi-quickjs CMAKE_BUILD_TYPE=${{ matrix.build_type }} JOBS=4

      - name: Test native QuickJS N-API
        run: make test-napi-quickjs CMAKE_BUILD_TYPE=${{ matrix.build_type }} JOBS=4 TEST_JOBS=4

      - name: sccache stats
        if: always()
        run: sccache --show-stats || true

  quickjs-native-macos:
    name: quickjs-native-macos-${{ matrix.build_type }}
    runs-on: macos-latest
    strategy:
      fail-fast: false
      matrix:
        build_type: [Release, Debug]
    env:
      SCCACHE_GHA_ENABLED: "true"
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - name: Setup sccache
        uses: mozilla-actions/sccache-action@v0.0.9

      - name: Build native QuickJS N-API
        run: make build-napi-quickjs CMAKE_BUILD_TYPE=${{ matrix.build_type }} JOBS=4

      - name: Test native QuickJS N-API
        run: make test-napi-quickjs CMAKE_BUILD_TYPE=${{ matrix.build_type }} JOBS=4 TEST_JOBS=4

      - name: sccache stats
        if: always()
        run: sccache --show-stats || true