11name : Check includes
22on : [push, pull_request]
33
4+ defaults :
5+ run :
6+ shell : bash
7+
48jobs :
59 includes-check :
610 runs-on : ubuntu-latest
11+ container :
12+ # image: "node:20-trixie"
13+ image : " debian:13"
14+ # options: --user 0 --workdir /__w/hackrf/hackrf
15+ options : >-
16+ --user 0
17+ --workdir /
18+ # image: "debian-trixie:latest"
719 strategy :
820 matrix :
9- board : ['HACKRF_ONE', 'JAWBREAKER', 'RAD1O', 'PRALINE']
10- cmake : ['3.10.0', 'latest']
21+ board : ['HACKRF_ONE'] # , 'JAWBREAKER', 'RAD1O', 'PRALINE']
22+ cmake : ['3.10.0'] # , 'latest']
1123
1224 # Don't cancel all builds when one fails
1325 fail-fast : false
1426
1527 steps :
16- - uses : actions/checkout@v4
28+ - name : Make working directory
29+ run : |
30+ mkdir -p /__w/hackrf/hackrf
31+ ls -alR /__w
32+
33+ - name : Make it work on debian
34+ run : |
35+ apt update
36+ apt install -y git sudo nodejs python3 python3-pip python3-venv iwyu
37+
38+ - name : Checkout repository
39+ uses : actions/checkout@v4
1740 with :
1841 submodules : true
1942
43+ - name : Check working directory
44+ run : |
45+ mkdir -p /__w/hackrf/hackrf/firmware/build
46+ ls -al /__w
47+ ls -al /__w/hackrf
48+ ls -al /__w/hackrf/hackrf
49+ ls -al /__w/hackrf/hackrf/firmware
50+ ls -al /__w/hackrf/hackrf/firmware/build
51+
2052 - name : Setup cmake
2153 uses : jwlawson/actions-setup-cmake@v2
2254 with :
@@ -29,11 +61,13 @@ jobs:
2961 run : |
3062 python3 -m venv environment && source environment/bin/activate
3163 python3 -m pip install PyYAML
32- sudo apt update
33- sudo apt install iwyu
64+ #sudo apt update
65+ #sudo apt upgrade -y
66+ #sudo apt info iwyu
67+ #sudo apt install -y iwyu
68+ iwyu --version
3469
3570 - name : Build libopencm3
36- shell : bash
3771 working-directory : ${{github.workspace}}/firmware/libopencm3/
3872 run : |
3973 source ../../environment/bin/activate
@@ -43,13 +77,11 @@ jobs:
4377 run : cmake -E make_directory ${{github.workspace}}/firmware/build
4478
4579 - name : Configure CMake
46- shell : bash
4780 working-directory : ${{github.workspace}}/firmware/build
4881 run : cmake $GITHUB_WORKSPACE/firmware/ -DCMAKE_BUILD_TYPE=Release -DBOARD=${{ matrix.board }} -DCHECK_INCLUDES=1
4982
5083 - name : Build
5184 working-directory : ${{github.workspace}}/firmware/build
52- shell : bash
5385 run : |
5486 source ../../environment/bin/activate
5587 output="$(cmake --build . --config Release 2>&1)"
5890 if [[ "${line}" == "Warning: include-what-you-use"* ]]; then
5991 exit_code=1
6092 dump=1
93+ echo
6194 elif [[ "${line}" == "---" ]]; then
6295 dump=0
96+ echo
6397 fi
6498 if [[ ${dump} == "1" ]]; then
6599 echo "${line}"
0 commit comments