Count and print sloc count in tools workflow

This commit is contained in:
Oleg Kalachev
2026-08-14 01:30:51 +03:00
parent d6b9228282
commit 87ce9c20cb
+11
View File
@@ -46,3 +46,14 @@ jobs:
echo -e "t,x,y,z\n0,1,2,3\n1,4,5,6" > log.csv
./csv_to_mcap.py log.csv
test $(stat -c %s log.mcap) -eq 883
sloc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install -y cloc jq
- name: Print source lines of code
run: cloc --by-file-by-lang flix
- name: Annotate total source lines
run: |
sloc=$(cloc flix --json | jq -r '.SUM.code')
echo "::notice title=SLOC::Current SLOC = $sloc"