-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change the CI build on rpi3b build to use broadcom GPU * disable -Wcast-qual for hello_fft
- Loading branch information
1 parent
e007afe
commit 96289a6
Showing
5 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash -e | ||
|
||
platform="${1}" | ||
|
||
if [ -z "${platform}" ]; then | ||
echo "Error: platform not set" | ||
exit -1 | ||
fi | ||
|
||
echo "running build for ${platform} on $(source /etc/os-release ; echo ${VERSION})" | ||
|
||
case "${platform}" in | ||
rpi3b) | ||
CMAKE_ARGS="-DPLATFORM=rpiv2 -DCMAKE_BUILD_TYPE=Release -DNFM=TRUE -DBUILD_UNITTESTS=TRUE" | ||
;; | ||
|
||
*) | ||
echo "Error: Platform '${platform}' not supported" | ||
exit -1 | ||
esac | ||
|
||
# make a build dir | ||
rm -rf build || true ; mkdir build | ||
cd build | ||
|
||
# configure and build | ||
cmake ${CMAKE_ARGS} ../ | ||
make -j | ||
|
||
# run unit tests | ||
src/unittests | ||
|
||
# run rtl_airband to get version string and exit | ||
src/rtl_airband -v |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Run CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
tags: ['v*'] | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '39 13 * * *' # run daily | ||
|
||
jobs: | ||
platform_build: | ||
strategy: | ||
matrix: | ||
os: [ rpi3b ] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 35 # runtime across all OSs, runs can get queued | ||
steps: | ||
- name: Runner Info | ||
run: printenv | sort | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' # need full history to get version from git tag | ||
|
||
- name: Install packaged dependencies | ||
run: .github/install_dependencies | ||
|
||
- name: Configure Build and Test | ||
run: .github/platform_build ${{ matrix.os }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters