@@ -52,40 +52,40 @@ jobs:
52
52
run : |
53
53
nix profile add .#hyperfine .#jq
54
54
55
- - name : Evaluate ${{ matrix.examples.package }} without lazy trees
55
+ - name : Evaluate ${{ matrix.examples.package }} with lazy trees
56
56
env :
57
- PREFIX : lazy-trees-disabled
57
+ PREFIX : lazy-trees-enabled
58
58
run : |
59
+ echo "lazy-trees = true" | sudo tee -a /etc/nix/nix.custom.conf
60
+
59
61
hyperfine \
60
62
--export-json ${{ env.PREFIX }}-${{ matrix.examples.runner }}-${{ matrix.examples.package }}.json \
61
63
--prepare 'echo "" >> flake.nix' \
62
64
--cleanup 'sudo rm -rf ./tmp; git restore .' \
63
65
'nix eval --quiet --offline --no-substitute --no-eval-cache --store ./tmp .#${{ matrix.examples.package }}'
64
66
65
- - name : Upload results (lazy trees disabled )
67
+ - name : Upload results (lazy trees enabled )
66
68
uses : actions/upload-artifact@v4
67
69
env :
68
- PREFIX : lazy-trees-disabled
70
+ PREFIX : lazy-trees-enabled
69
71
with :
70
72
name : ${{ env.PREFIX }}-${{ matrix.examples.runner }}-${{ matrix.examples.package }}
71
73
path : ${{ env.PREFIX }}-${{ matrix.examples.runner }}-${{ matrix.examples.package }}.json
72
74
73
- - name : Evaluate ${{ matrix.examples.package }} with lazy trees
75
+ - name : Evaluate ${{ matrix.examples.package }} without lazy trees
74
76
env :
75
- PREFIX : lazy-trees-enabled
77
+ PREFIX : lazy-trees-disabled
76
78
run : |
77
- echo "lazy-trees = true" | sudo tee -a /etc/nix/nix.custom.conf
78
-
79
79
hyperfine \
80
80
--export-json ${{ env.PREFIX }}-${{ matrix.examples.runner }}-${{ matrix.examples.package }}.json \
81
81
--prepare 'echo "" >> flake.nix' \
82
82
--cleanup 'sudo rm -rf ./tmp; git restore .' \
83
83
'nix eval --quiet --offline --no-substitute --no-eval-cache --store ./tmp .#${{ matrix.examples.package }}'
84
84
85
- - name : Upload results (lazy trees enabled )
85
+ - name : Upload results (lazy trees disabled )
86
86
uses : actions/upload-artifact@v4
87
87
env :
88
- PREFIX : lazy-trees-enabled
88
+ PREFIX : lazy-trees-disabled
89
89
with :
90
90
name : ${{ env.PREFIX }}-${{ matrix.examples.runner }}-${{ matrix.examples.package }}
91
91
path : ${{ env.PREFIX }}-${{ matrix.examples.runner }}-${{ matrix.examples.package }}.json
0 commit comments