Skip to content

Commit ec4d909

Browse files
committed
fix run error
1 parent 8014343 commit ec4d909

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/kani.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,16 @@ jobs:
6666
working-directory: ${{github.workspace}}/head
6767
run: scripts/run-kani.sh --kani-args --harness ptr::verify::check_read_u128 --harness ptr --output-format=terse
6868

69-
# Step 3: Run list on the std library (assumes it creates kani_list.txt)
69+
# Step 4: Run list on the std library and add output to job summary
7070
- name: Run Kani List
71+
run: head/scripts/run-kani.sh --run list --path ${{github.workspace}}/head
72+
73+
- name: Add Kani List output to job summary
7174
uses: actions/github-script@v6
7275
with:
7376
script: |
74-
head/scripts/run-kani.sh --run list --path ${{github.workspace}}/head;
7577
const fs = require('fs');
7678
const kaniOutput = fs.readFileSync('${{github.workspace}}/head/kani_list.txt', 'utf8');
77-
kaniOutput >> "$GITHUB_STEP_SUMMARY";
79+
await core.summary
80+
.addRaw(kaniOutput)
81+
.write();

0 commit comments

Comments
 (0)