Skip to content

Commit b6cf7d8

Browse files
committed
fixup! tools: share CI and benchmark build configuration
1 parent 1fcd532 commit b6cf7d8

3 files changed

Lines changed: 15 additions & 18 deletions

File tree

‎.github/workflows/build-shared.yml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ on:
1717
required: false
1818
type: boolean
1919
default: false
20-
with-perfetto:
21-
description: Whether to enable Perfetto
22-
required: false
23-
type: boolean
24-
default: false
2520
v8-nar:
2621
description: An optional name for the NAR archive for V8 that needs to be downloaded
2722
required: false
@@ -90,7 +85,6 @@ jobs:
9085
-I "nixpkgs=$TAR_DIR/tools/nix/pkgs.nix" \
9186
--pure --keep TAR_DIR --keep FLAKY_TESTS \
9287
--keep SCCACHE_GHA_ENABLED --keep ACTIONS_CACHE_SERVICE_V2 --keep ACTIONS_RESULTS_URL --keep ACTIONS_RUNTIME_TOKEN \
93-
--arg withPerfetto ${{ inputs.with-perfetto }} \
9488
--arg ccache "${NIX_SCCACHE:-null}" \
9589
--arg pkcs11 ${{ inputs.pkcs11-store-test }} \
9690
${{ inputs.extra-nix-flags }} \

‎.github/workflows/test-shared.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
with:
166166
runner: ${{ matrix.runner }}
167167
with-sccache: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
168-
with-perfetto: ${{ matrix.perfetto || false }}
168+
extra-nix-flags: ${{ matrix.perfetto && '--arg withPerfetto true' || '' }}
169169
secrets:
170170
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
171171

‎tools/nix/ci-shell.nix‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ import ../../shell.nix (
1010
devTools = [ ];
1111
benchmarkTools = [ ];
1212
}
13-
// pkgs.lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
14-
withAmaro = false;
15-
withFFI = false;
16-
withLief = false;
17-
withSQLite = false;
18-
withTemporal = false;
19-
extraConfigFlags = [
20-
"--without-inspector"
21-
"--without-node-options"
22-
];
23-
}
13+
// pkgs.lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin (
14+
# Disable optional features on Darwin for coverage and faster CI.
15+
builtins.mapAttrs (n: v: false) (
16+
pkgs.lib.filterAttrs (n: v: builtins.match "with[A-Z].+" n != null) (
17+
builtins.functionArgs (import ../../shell.nix)
18+
)
19+
)
20+
// {
21+
extraConfigFlags = [
22+
"--without-inspector"
23+
"--without-node-options"
24+
];
25+
}
26+
)
2427
// args
2528
)

0 commit comments

Comments
 (0)