diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 0e901de78d9a..9f4ed58447df 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -140,7 +140,7 @@ jobs: --arg withPerfetto ${{ matrix.perfetto || false }} \ --arg ccache '(import {}).sccache' \ --run ' - make build-ci -j4 V=1 + make build-ci -j4 V=1 ${{ contains(format(' {0} ', inputs.category), ' napi ') && '&& make bench-addons-build' || '' }} ' tools/nix/ci-shell.nix env: SCCACHE_LOCAL_RW_MODE: READ_ONLY diff --git a/benchmark/common.js b/benchmark/common.js index fa108b706831..734c664c80f5 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -470,7 +470,11 @@ module.exports = { return process.binding(bindingName); } }, - buildType: process.features.debug ? 'Debug' : 'Release', + // As in test/common: a --debug-node build is still a Release build, and its + // addons are in build/Release. + buildType: process.config.target_defaults ? + process.config.target_defaults.default_configuration : + 'Release', createBenchmark(fn, configs, options) { return new Benchmark(fn, configs, options); },