fix aggregate
Some checks failed
judge / Build judge (push) Successful in 10s
judge / Linux / gcc / Debug (push) Successful in 9s
judge / Linux / clang / Release (push) Successful in 12s
judge / Linux / clang / Sanitized (push) Successful in 11s
judge / Linux / gcc / Release (push) Successful in 11s
judge / Linux / gcc / Sanitized (push) Successful in 10s
judge / Linux / gcc / Debug (valgrind) (push) Successful in 17s
judge / Windows / clang / Debug (push) Successful in 1m28s
judge / Windows / clang / Release (push) Successful in 1m24s
judge / Windows / msvc / Release (push) Successful in 1m28s
judge / Windows / msvc / Debug (push) Successful in 1m33s
judge / SUMMARY (push) Failing after 4s

This commit is contained in:
2026-04-06 14:28:51 +03:00
parent cb70adbf09
commit 856d7935b5
3 changed files with 90 additions and 14 deletions

View File

@@ -156,13 +156,27 @@ jobs:
compression-level: 9
summary:
needs: [test]
needs: [build_judge, test]
if: ${{ always() }}
name: SUMMARY
runs-on: Linux-Runner
timeout-minutes: 5
steps:
- name: Download judge binary
uses: https://github.com/christopherHX/gitea-download-artifact@v4
with:
name: judge-bin
path: judge-bin
- name: Install judge on PATH
shell: bash
run: |
mkdir -p bin
cp judge-bin/judge-linux-amd64 bin/judge
chmod +x bin/judge
echo "$PWD/bin" >> "$GITHUB_PATH"
- name: Download all reports
uses: https://github.com/christopherHX/gitea-download-artifact@v4
with:
@@ -171,18 +185,7 @@ jobs:
- name: Aggregate
shell: bash
run: |
echo "# Judge results" > SUMMARY.md
echo "" >> SUMMARY.md
echo "| Configuration | Score |" >> SUMMARY.md
echo "|---|---|" >> SUMMARY.md
shopt -s nullglob
for f in reports/*/*.json; do
cfg=$(basename "$(dirname "$f")" | sed 's/^report_//')
score=$(grep -o '"total_score":[^,}]*' "$f" | head -1 | cut -d: -f2)
echo "| $cfg | ${score:- -} |" >> SUMMARY.md
done
cat SUMMARY.md
run: judge aggregate reports > SUMMARY.md
- name: Upload summary
uses: https://github.com/christopherHX/gitea-upload-artifact@v4