Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/problem-matchers/sparse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "powerpc-sparse",
"pattern": [
{
"regexp": "^(?:\\+|-)?(?:/linux/)?(.*):(\\d+):(\\d+):\\s+(error|warning):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
}
]
}
21 changes: 19 additions & 2 deletions .github/workflows/powerpc-sparse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,29 @@ jobs:
mkdir -p ~/.ccache
./arch/powerpc/tools/ci-build.sh

- name: powerpc sparse errors
run: grep /linux/arch/powerpc ~/output/sparse.log
- name: Get sparse results from base tree
continue-on-error: true
uses: dawidd6/action-download-artifact@v2
with:
workflow: powerpc-sparse.yml
workflow_conclusion: success
branch: merge # Requires the merge branch to be built once before this will work
name: sparse-${{ matrix.defconfig }}-${{ matrix.image }}.log
path: ~/base_logs

- name: Register sparse problem matcher
run: echo "::add-matcher::.github/problem-matchers/sparse.json"

- name: Compare sparse results with base
run: |
wget https://github.com/daxtens/smart-sparse-diff/raw/master/smart-sparse-diff.py
bash -c 'if [ ! -f ~/base_logs/sparse.log ]; then mkdir -p ~/base_logs && cp ~/output/sparse.log ~/base_logs/; fi'
python3 smart-sparse-diff.py ~/base_logs/sparse.log ~/output/sparse.log | tee -a ~/output/sparse-diff.log

- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: sparse-${{ matrix.defconfig }}-${{ matrix.image }}.log
path: |
~/output/sparse.log
~/output/sparse-diff.log