Skip to content

Commit a04651c

Browse files
Merge pull request #63 from FrameworkComputer/check-versions
2 parents 78ebefa + ad4afec commit a04651c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/firmware.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ jobs:
7676
cargo clippy -p c1minimal -- --deny=warnings
7777
cargo clippy -p ledmatrix -- --deny=warnings
7878
79+
# fl16-inputmodules/src/serialnum.rs
80+
# is currently used by all firmwares to show their firmware version.
81+
# But it shows the version of the fl16-inputmodules package.
82+
# So that needs to be the same as the firmware version.
83+
- name: Check versions of all packages are the same
84+
run: |
85+
cargo pkgid -p fl16-inputmodules | cut -d "#" -f2 >> versions.tmp
86+
cargo pkgid -p b1display | cut -d "#" -f2 >> versions.tmp
87+
cargo pkgid -p c1minimal | cut -d "#" -f2 >> versions.tmp
88+
cargo pkgid -p ledmatrix | cut -d "#" -f2 >> versions.tmp
89+
uniq -c versions.tmp | [ $(wc -l) -eq 1 ]
90+
7991
formatting:
8092
name: Formatting
8193
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)