Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Check if BSP files need to be updated
Browse files Browse the repository at this point in the history
Run update-targets.sh to make sure that all of the BSP files are
up-to-date and reproducible.

Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
  • Loading branch information
nategraff-sifive committed Mar 10, 2020
1 parent cf0d06b commit 25683cc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
run: |
docker run --rm freedom-e-sdk ./scripts/check-submodules
- name: 'Check BSP files are up-to-date'
run: |
docker run --rm freedom-e-sdk ./scripts/check-bsps-updated
- name: 'Build all examples on all targets'
run: |
docker run --rm -e RISCV_CFLAGS="${{ matrix.riscv_cflags }}" freedom-e-sdk ./scripts/all-targets-build
Expand Down
15 changes: 15 additions & 0 deletions scripts/check-bsps-updated
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e
set -o pipefail
set -x

pushd $(dirname "$0")/../bsp && ./update-targets.sh && popd

DIFF=$(git diff)

if [ "${DIFF}" != "" ] ; then
>&2 echo "BSP files change if bsp/update-targets.sh is run."
>&2 echo "Please re-run update-targets.sh to keep BSP files up-to-date."
exit 1
fi

0 comments on commit 25683cc

Please sign in to comment.