File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 }} \
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments