GeezerVison is showing github.com — benchmark,tools: fix napi benchmarks on GHA · nodejs/node@493bd6c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/benchmark.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -140,7 +140,7 @@ jobs: |
140 | 140 | --arg withPerfetto ${{ matrix.perfetto || false }} \ |
141 | 141 | --arg ccache '(import <nixpkgs> {}).sccache' \ |
142 | 142 | --run ' |
143 | | - make build-ci -j4 V=1 |
| 143 | + make build-ci -j4 V=1 ${{ contains(format(' {0} ', inputs.category), ' napi ') && '&& make bench-addons-build' || '' }} |
144 | 144 | ' tools/nix/ci-shell.nix |
145 | 145 | env: |
146 | 146 | SCCACHE_LOCAL_RW_MODE: READ_ONLY |
|
Collapse file
Copy file name to clipboardExpand all lines: benchmark/common.js +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -441,7 +441,11 @@ module.exports = { |
441 | 441 | return process.binding(bindingName); |
442 | 442 | } |
443 | 443 | }, |
444 | | - buildType: process.features.debug ? 'Debug' : 'Release', |
| 444 | + // As in test/common: a --debug-node build is still a Release build, and its |
| 445 | + // addons are in build/Release. |
| 446 | + buildType: process.config.target_defaults ? |
| 447 | + process.config.target_defaults.default_configuration : |
| 448 | + 'Release', |
445 | 449 | createBenchmark(fn, configs, options) { |
446 | 450 | return new Benchmark(fn, configs, options); |
447 | 451 | }, |
|