Skip to content

Commit

Permalink
fix run error
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzech committed Nov 19, 2024
1 parent 8014343 commit ec4d909
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/kani.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,16 @@ jobs:
working-directory: ${{github.workspace}}/head
run: scripts/run-kani.sh --kani-args --harness ptr::verify::check_read_u128 --harness ptr --output-format=terse

# Step 3: Run list on the std library (assumes it creates kani_list.txt)
# Step 4: Run list on the std library and add output to job summary
- name: Run Kani List
run: head/scripts/run-kani.sh --run list --path ${{github.workspace}}/head

- name: Add Kani List output to job summary
uses: actions/github-script@v6
with:
script: |
head/scripts/run-kani.sh --run list --path ${{github.workspace}}/head;
const fs = require('fs');
const kaniOutput = fs.readFileSync('${{github.workspace}}/head/kani_list.txt', 'utf8');
kaniOutput >> "$GITHUB_STEP_SUMMARY";
await core.summary
.addRaw(kaniOutput)
.write();

0 comments on commit ec4d909

Please sign in to comment.