|
1 | 1 | # This file is part of BOINC. |
2 | | -# http://boinc.berkeley.edu |
3 | | -# Copyright (C) 2023 University of California |
| 2 | +# https://boinc.berkeley.edu |
| 3 | +# Copyright (C) 2025 University of California |
4 | 4 | # |
5 | 5 | # BOINC is free software; you can redistribute it and/or modify it |
6 | 6 | # under the terms of the GNU Lesser General Public License |
@@ -30,12 +30,10 @@ concurrency: |
30 | 30 | cancel-in-progress: true |
31 | 31 |
|
32 | 32 | jobs: |
33 | | - build: |
34 | | - name: ${{ matrix.type }} |
| 33 | + source-code-check-illegal-symbols: |
| 34 | + name: source-code-check-illegal-symbols |
35 | 35 | runs-on: ubuntu-latest |
36 | 36 | strategy: |
37 | | - matrix: |
38 | | - type: [source-code-check] |
39 | 37 | fail-fast: false |
40 | 38 | steps: |
41 | 39 | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
|
45 | 43 | if: ${{ success() }} |
46 | 44 | run: | |
47 | 45 | python ./ci_tools/source_code_check.py . |
| 46 | +
|
| 47 | + source-code-check-trailing-whitespaces: |
| 48 | + name: source-code-check-trailing-whitespaces |
| 49 | + runs-on: ubuntu-latest |
| 50 | + strategy: |
| 51 | + fail-fast: false |
| 52 | + steps: |
| 53 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 54 | + with: |
| 55 | + fetch-depth: 2 |
48 | 56 | - name: Check source code for trailing whitespaces |
49 | 57 | if: ${{ success() }} |
50 | 58 | run: | |
51 | 59 | python ./ci_tools/trailing_whitespaces_check.py . |
| 60 | + - name: Prepare patch file |
| 61 | + if: failure() |
| 62 | + run: | |
| 63 | + python ./ci_tools/trailing_whitespaces_check.py . --fix |
| 64 | + git diff > trailing_whitespaces.patch |
| 65 | + - name: Upload patch |
| 66 | + if: failure() |
| 67 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 |
| 68 | + with: |
| 69 | + name: trailing_whitespaces.patch |
| 70 | + path: trailing_whitespaces.patch |
| 71 | + |
0 commit comments