HAMNET-Access-Protocol / HNAP4PlutoSDR

Main transceiver application
GNU Lesser General Public License v3.0
29 stars 5 forks source link

Build standalone binaries with Linaro compiler #31

Closed dl1com closed 4 years ago

dl1com commented 4 years ago

This pull request solves "Build Standalone Binaries for Target with gcc-linaro compiler" from #21

We use the cache action (https://docs.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action) to cache the custom sysroot folder to speed up the workflow run. The custom sysroot folder will be re-generated as soon as the create_sysroot.sh file changes.

Future improvement: Another improvement would be caching of the Linaro compiler, so we don't have to download it each run. For achieving this, we would have to store the download link in our build scripts, so we are aware when this path changes. E.g.: in case no compiler is available (https://github.com/HAMNET-Access-Protocol/HNAP4PlutoSDR/blob/develop/build_scripts/build_standalone_binaries.sh#L23) , download the compiler, untar and add it to the PATH