Debian Codegraph @

.github/workflows/unusedargs_missingreturn.yml

raw
1 name: UnusedMissingReturn
2 # this workflow checks for
3 # * unused input arguments
4 # * missing return values
5 # * strict prototypes
6 # some users have default configs that will needlessly fail Meson self-tests due to these syntax.
7 env:
8 CFLAGS: "-Werror=unused-parameter -Werror=return-type -Werror=strict-prototypes"
9 CPPFLAGS: "-Werror=unused-parameter -Werror=return-type"
10 FFLAGS: "-fimplicit-none"
11
12 concurrency:
13 group: unusedargs-${{ github.head_ref || github.ref }}
14 cancel-in-progress: true
15
16 on:
17 push:
18 paths:
19 - ".github/workflows/unusedargs_missingreturn.yml"
20 - "test cases/cmake/**"
21 - "test cases/common/**"
22 - "test cases/fortran/**"
23 - "test cases/linuxlike/**"
24 - "test cases/objc/**"
25 - "test cases/objcpp/**"
26 - "test cases/windows/**"
27
28 pull_request:
29 paths:
30 - ".github/workflows/unusedargs_missingreturn.yml"
31 - "test cases/cmake/**"
32 - "test cases/common/**"
33 - "test cases/fortran/**"
34 - "test cases/linuxlike/**"
35 - "test cases/objc/**"
36 - "test cases/objcpp/**"
37 - "test cases/windows/**"
38
39 permissions:
40 contents: read
41
42 jobs:
43
44 linux:
45 runs-on: ubuntu-22.04
46 steps:
47 - uses: actions/checkout@v4
48 - uses: actions/setup-python@v5
49 with:
50 python-version: '3.x'
51 - name: Install Compilers
52 run: |
53 sudo apt update -yq
54 sudo apt install -yq --no-install-recommends g++ gfortran ninja-build gobjc gobjc++
55 - run: ./run_project_tests.py --only cmake common fortran platform-linux "objective c" "objective c++"
56 env:
57 MESON_CI_JOBNAME: linux-ubuntu-gcc-werror
58
59 windows:
60 runs-on: windows-latest
61 steps:
62 - uses: actions/checkout@v4
63 - uses: actions/setup-python@v5
64 with:
65 python-version: '3.x'
66
67 - run: pip install ninja pefile
68
69 - run: python ./run_project_tests.py --only platform-windows
70 env:
71 CC: gcc
72 CXX: g++
73 FC: gfortran
74 MESON_CI_JOBNAME: msys2-gcc-werror