@@ -36,12 +36,19 @@ jobs:
36
36
authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
37
37
extraPullNames : coq, math-comp
38
38
name : coq-community
39
+ - id : stepGetDerivation
40
+ name : Getting derivation for current job (coq)
41
+ run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
42
+ \" master\" --argstr job \" coq\" \\\n --dry-run 2> err > out || (touch fail;
43
+ true)\n "
44
+ - name : Error reporting
45
+ run : cat err
46
+ - name : Failure check
47
+ run : if [ -e fail ]; then exit 1; else exit 0; fi;
39
48
- id : stepCheck
40
- name : Checking presence of CI target coq
41
- run : " nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr
42
- bundle \" master\" --argstr job \" coq\" \\\n --dry-run 2>&1 > /dev/null)\n
43
- echo $nb_dry_run\n echo status=$(echo $nb_dry_run | grep \" built:\" | sed \" \
44
- s/.*/built/\" ) >> $GITHUB_OUTPUT\n "
49
+ name : Checking presence of CI target for current job
50
+ run : " (cat out; echo -n status=; cat out | grep \\\" built:\\\" | sed \\\" s/.*/built/\\ \
51
+ \" ) >> $GITHUB_OUTPUT\\ n\"\n "
45
52
- if : steps.stepCheck.outputs.status == 'built'
46
53
name : Building/fetching current CI target
47
54
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "master"
@@ -84,12 +91,19 @@ jobs:
84
91
authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
85
92
extraPullNames : coq, math-comp
86
93
name : coq-community
94
+ - id : stepGetDerivation
95
+ name : Getting derivation for current job (coq-shell)
96
+ run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
97
+ \" master\" --argstr job \" coq-shell\" \\\n --dry-run 2> err > out || (touch
98
+ fail; true)\n "
99
+ - name : Error reporting
100
+ run : cat err
101
+ - name : Failure check
102
+ run : if [ -e fail ]; then exit 1; else exit 0; fi;
87
103
- id : stepCheck
88
- name : Checking presence of CI target coq-shell
89
- run : " nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr
90
- bundle \" master\" --argstr job \" coq-shell\" \\\n --dry-run 2>&1 > /dev/null)\n
91
- echo $nb_dry_run\n echo status=$(echo $nb_dry_run | grep \" built:\" | sed \" \
92
- s/.*/built/\" ) >> $GITHUB_OUTPUT\n "
104
+ name : Checking presence of CI target for current job
105
+ run : " (cat out; echo -n status=; cat out | grep \\\" built:\\\" | sed \\\" s/.*/built/\\ \
106
+ \" ) >> $GITHUB_OUTPUT\\ n\"\n "
93
107
- if : steps.stepCheck.outputs.status == 'built'
94
108
name : ' Building/fetching previous CI target: coq'
95
109
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "master"
0 commit comments