Add: github action libmodulesupdated

This commit is contained in:
Yoann La Cancellera
2024-05-07 11:11:49 +02:00
parent 782a3c0b1b
commit 74238cae7b
2 changed files with 32 additions and 0 deletions

16
.github/workflows/libmodulesupdated.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: libmodules_has_been_updated
on:
pull_request:
branches: [ "3.x" ]
jobs:
libmodulescheck:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- name: run util/check_bin_md5sum
run: ./util/check_bin_md5sum

16
util/check_bin_md5sum Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
for tool in bin/*; do
shasum=$(md5sum $tool)
util/update-modules $tool;
rc="$?"
if [ $? -ne 0 ]; then
echo "'util/update-modules $tool' exited with code $rc"
fi
updated_shasum=$(md5sum $tool)
if [ "$shasum" != "$updated_shasum" ]; then
echo "$tool had unsynced changes from lib, md5sum before and after running './util/update-modules $tool' is different"
exit 1
fi
done