Skip to content

Commit

Permalink
checks: Check for missing file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed May 17, 2024
1 parent 280b723 commit d58bd90
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ jobs:
run: |
./configure --disable-documentation --disable-doxygen --disable-man --enable-examples --enable-tests --disable-dtls
scan-build make V=0
check-missing-updates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup
run: |
sudo apt-get update && sudo apt-get install -y libcunit1-dev libtool libtool-bin exuberant-ctags clang-tools
./autogen.sh
- name: configure
run: |
./configure --disable-documentation --disable-doxygen --disable-man --enable-examples --enable-tests --disable-dtls
- name: check
run: |
scripts/check-missing-updates.sh
build-linux:
runs-on: ubuntu-latest
strategy:
Expand Down
21 changes: 21 additions & 0 deletions scripts/check-missing-updates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#/bin/bash

#
# Check if there are any missing file updates
#

make update-map-file > /dev/null

git diff > diff_check

WC=`cat diff_check | wc -l`
if [ $WC != 0 ] ; then
echo
echo "Please correct the following files that were changed by"
echo "./configure (by updating its master file)"
echo "or 'make update-map-file'."
echo
cat diff_check
exit 1
fi
exit 0

0 comments on commit d58bd90

Please sign in to comment.