Skip to content

Fix that double free in Async #31

Fix that double free in Async

Fix that double free in Async #31

name: Memory Leak Detect
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
arkvm-memory:
name: ArkVM N-API memory
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: openharmony-zig/setup-zig-ohos@v0.1.0
with:
tag: '0.16.0'
- name: Setup ArkVM
id: setup-arkvm
uses: harmony-contrib/arkts-vm@v2.0.0
with:
cache: true
- name: Validate Ark host bundle
env:
ARK_HOST_TOOLS_DIR: ${{ steps.setup-arkvm.outputs.arkvm-path }}
run: |
set -euo pipefail
echo "Expect host bundle at: ${ARK_HOST_TOOLS_DIR}"
test -x "${ARK_HOST_TOOLS_DIR}/ark_js_napi_cli"
test -x "${ARK_HOST_TOOLS_DIR}/es2abc"
test -f "${ARK_HOST_TOOLS_DIR}/libace_napi.so"
test -f "${ARK_HOST_TOOLS_DIR}/libets_interop_js_napi.so"
- name: Run ArkVM memory tests
shell: bash
env:
ARK_HOST_TOOLS_DIR: ${{ steps.setup-arkvm.outputs.arkvm-path }}
KEEP_WORKDIR: "1"
run: bash scripts/arkvm/run_arkvm_memory_tests.sh