Skip to content

Commit

Permalink
[CI] Pass rate artifact (#968)
Browse files Browse the repository at this point in the history
Upload pass rate report as job artifact instead of storing it in a
shared volume.
  • Loading branch information
pbchekin authored Apr 25, 2024
1 parent 2e069cc commit a1a32c2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ jobs:
- name: Pass rate
run: |
python3 scripts/pass_rate.py --reports ~/reports
mkdir -p /cache/reports/pass-rate
TMPFILE=$(mktemp -p /cache/reports/pass-rate XXXXXXXXXX)
python3 scripts/pass_rate.py --reports ~/reports --json > $TMPFILE
mv $TMPFILE $TMPFILE.json
python3 scripts/pass_rate.py --reports ~/reports --json > pass_rate.json
- name: Upload pass rate report
# upload reports only for the default branch
if: github.ref_name == 'llvm-target'
uses: actions/upload-artifact@v4
with:
name: pass_rate-${{ join(matrix.*, '-') }}
path: pass_rate.json

0 comments on commit a1a32c2

Please sign in to comment.