Skip to content

Commit d0b23b1

Browse files
committed
test
1 parent 2c6116e commit d0b23b1

2 files changed

Lines changed: 43 additions & 9 deletions

File tree

.github/workflows/includes-check.yml

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,54 @@
11
name: Check includes
22
on: [push, pull_request]
33

4+
defaults:
5+
run:
6+
shell: bash
7+
48
jobs:
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)"
@@ -58,8 +90,10 @@ jobs:
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}"

firmware/common/rf_path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "hackrf_ui.h"
3232
#include "max283x.h"
3333
#include "max5864.h"
34-
#include "mixer.h"
34+
//#include "mixer.h"
3535
#include "platform_detect.h"
3636
#include "sgpio.h"
3737
#if defined(HACKRF_ONE) || defined(RAD1O) || defined(PRALINE)

0 commit comments

Comments
 (0)