applications
applications copied to clipboard
.github/workflow : Added compile tests
Added compile tests so that the compilation tests are triggered in the event that the submodule is updated.
ping @miri64
How can this be tested / what were the results?
Feel free to squash btw.
We had a small discussion at the summit. Maybe it would be better to use docker rather than a hard coded version of gcc. We could also try to run full build tests either but the make info-boards-supported or with the compile_and_test_for_board.py script.
When I have more time I will investigate.
@benpicco Here you go. results while doing a dry run in my system using act.
DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] ๐ Start image=catthehacker/ubuntu:act-latest DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] ๐ Start image=catthehacker/ubuntu:act-latest DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] ๐ Start image=catthehacker/ubuntu:act-latest DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] ๐ณ docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] ๐ณ docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] ๐ณ docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] ๐ณ docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] ๐ณ docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] ๐ณ docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] ๐ณ docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] ๐ณ docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] ๐ณ docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] ๐งช Matrix: map[applications:sniffer] DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] ๐งช Matrix: map[applications:spectrum-scanner] DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] ๐งช Matrix: map[applications:coap-chat] DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] โญ Run Main actions/checkout@v2 DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] โญ Run Main actions/checkout@v2 DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] โญ Run Main actions/checkout@v2 DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] โ Success - Main actions/checkout@v2 DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] โ Success - Main actions/checkout@v2 DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] โ Success - Main actions/checkout@v2 DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] โญ Run Main Pull the latest riotbuild docker image DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] โญ Run Main Pull the latest riotbuild docker image DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] โญ Run Main Pull the latest riotbuild docker image DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] โ Success - Main Pull the latest riotbuild docker image DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] โ Success - Main Pull the latest riotbuild docker image DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] โ Success - Main Pull the latest riotbuild docker image DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] โญ Run Main Run compile tests DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] โญ Run Main Run compile tests DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] โ Success - Main Run compile tests DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] โญ Run Main Run compile tests DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] โ Success - Main Run compile tests DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] โ Success - Main Run compile tests DRYRUN [Compilation tests for RIOT-OS submodule update/build-2] ๐ Job succeeded DRYRUN [Compilation tests for RIOT-OS submodule update/build-3] ๐ Job succeeded DRYRUN [Compilation tests for RIOT-OS submodule update/build-1] ๐ Job succeeded
@MrKevinWeiss Do we really need to run the compilation tests on all targets from make info-boards-supported? Applications (unlike examples )are usually meant for specific boards, right?
compile_and_test_for_board.py however runs and tests it in the target as well this would need the HW connected to it or maybe use renode .
You are right, compile_and_test_for_board.py is probably not the correct thing. Though it would be nice to build test every board, I don't know how big that would be. Maybe for now we just say native and add some script foo later, or even a preselected list of the most important boards.