|
31 | 31 | outputs:
|
32 | 32 | hol_sha: ${{ steps.shas.outputs.HOL_SHA }}
|
33 | 33 | cakeml_sha: ${{ steps.shas.outputs.CAKEML_SHA }}
|
| 34 | + hol_short_sha: ${{ steps.shas.outputs.HOL_SHORT_SHA }} |
| 35 | + cakeml_short_sha: ${{ steps.shas.outputs.CAKEML_SHORT_SHA }} |
34 | 36 |
|
35 | 37 | steps:
|
36 | 38 | - name: Update PATH
|
|
70 | 72 | repository: CakeML/CakeML
|
71 | 73 | path: cakeml
|
72 | 74 |
|
| 75 | + - name: Record HOL/CakeML checkouts |
| 76 | + id: shas |
| 77 | + run: | |
| 78 | + cd $HOLDIR |
| 79 | + echo "HOL_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT |
| 80 | + echo "HOL_SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT |
| 81 | + cd $CAKEMLDIR |
| 82 | + echo "CAKEML_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT |
| 83 | + echo "CAKEML_SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT |
| 84 | +
|
73 | 85 | - name: Build HOL4
|
74 | 86 | run: |
|
75 | 87 | cd $HOLDIR
|
@@ -186,14 +198,6 @@ jobs:
|
186 | 198 | touch lib/basis_ffi.c
|
187 | 199 | cd benchmark && ./benchmark.py --mode compile
|
188 | 200 |
|
189 |
| - - name: Record HOL/CakeML checkouts |
190 |
| - id: shas |
191 |
| - run: | |
192 |
| - cd $HOLDIR |
193 |
| - echo "HOL_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT |
194 |
| - cd $CAKEMLDIR |
195 |
| - echo "CAKEML_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT |
196 |
| -
|
197 | 201 | release:
|
198 | 202 | if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master'
|
199 | 203 | needs: build
|
@@ -253,6 +257,11 @@ jobs:
|
253 | 257 | \"color\": ${{ needs.build.result == 'success' && 8311585 || 13632027 }},
|
254 | 258 | \"author\": {
|
255 | 259 | \"name\": \"PureCake CI\",
|
256 |
| - \"url\": \"https://github.com/CakeML/pure/actions/workflows/pure.yml\"} |
| 260 | + \"url\": \"https://github.com/CakeML/pure/actions/workflows/pure.yml\"}, |
| 261 | + \"fields\": [ |
| 262 | + {\"name\": \"HOL commit\", \"inline\": true, |
| 263 | + \"value\": \"[${{ needs.build.outputs.hol_short_sha }}](https://github.com/HOL-Theorem-Prover/HOL/commit/${{ needs.build.outputs.hol_sha }})\"}, |
| 264 | + {\"name\": \"CakeML commit\", \"inline\": true, |
| 265 | + \"value\": \"[${{ needs.build.outputs.cakeml_short_sha }}](https://github.com/CakeML/cakeml/commit/${{ needs.build.outputs.cakeml_sha }})\"}] |
257 | 266 | }]}"
|
258 | 267 | ${{ secrets.DISCORD_WEBHOOK }}
|
0 commit comments