From ad4afecd838c49052c47781ec647481eb2bae214 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Sat, 26 Aug 2023 15:05:19 +0800 Subject: [PATCH] Make sure versions are the same Signed-off-by: Daniel Schaefer --- .github/workflows/firmware.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/firmware.yml b/.github/workflows/firmware.yml index b7affead..e61c4f79 100644 --- a/.github/workflows/firmware.yml +++ b/.github/workflows/firmware.yml @@ -76,6 +76,18 @@ jobs: cargo clippy -p c1minimal -- --deny=warnings cargo clippy -p ledmatrix -- --deny=warnings + # fl16-inputmodules/src/serialnum.rs + # is currently used by all firmwares to show their firmware version. + # But it shows the version of the fl16-inputmodules package. + # So that needs to be the same as the firmware version. + - name: Check versions of all packages are the same + run: | + cargo pkgid -p fl16-inputmodules | cut -d "#" -f2 >> versions.tmp + cargo pkgid -p b1display | cut -d "#" -f2 >> versions.tmp + cargo pkgid -p c1minimal | cut -d "#" -f2 >> versions.tmp + cargo pkgid -p ledmatrix | cut -d "#" -f2 >> versions.tmp + uniq -c versions.tmp | [ $(wc -l) -eq 1 ] + formatting: name: Formatting runs-on: ubuntu-latest