File tree Expand file tree Collapse file tree 2 files changed +5
-177
lines changed
Expand file tree Collapse file tree 2 files changed +5
-177
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2626 name : windows
2727 path : |
2828 "likespro.eth - UNIVERSAL\Debug\likespro.eth - UNIVERSAL.exe"
29+
2930 build-mac-and-ubuntu :
3031 runs-on : ${{matrix.os}}
3132 strategy :
@@ -48,12 +49,11 @@ jobs:
4849 path : |
4950 'likespro.eth - UNIVERSAL.o'
5051
51- build -git-badges :
52- name : Build Git Badges
52+ generate -git-badges :
53+ name : Generate Git Badges
5354 runs-on : ubuntu-latest
5455 permissions :
5556 contents : write
56-
5757 steps :
5858 - name : Checkout repository
5959 uses : actions/checkout@v4
@@ -64,13 +64,13 @@ jobs:
6464 function format_size { echo $(numfmt --to iec --suffix B $1); }
6565 function format_number { LC_ALL=en_US.UTF-8 printf "%'d\n" $1; }
6666 echo "file_count=$(format_number $(git ls-files | wc -l))" >> $GITHUB_OUTPUT
67- echo "lines_of_code=$(git ls-files | grep '\ .cpp' | xargs wc -l)" >> $GITHUB_OUTPUT
67+ echo "lines_of_code=$(find . -type f -name "* .cpp" -exec wc -l {} + | awk '{s+=$1} END {print s}' )" >> $GITHUB_OUTPUT
6868 git gc
6969 echo "size=$(format_size $(($(git count-objects -v | grep 'size-pack: ' | sed 's/size-pack: //g' | tr -d '\n') * 1024)))" >> $GITHUB_OUTPUT
7070 shell : bash
7171
7272 - name : Generate-Badge
73- uses : ./.github/actions/ generate-badge
73+ uses : likespro/ generate-badge@v1
7474 with :
7575 token : ${{ secrets.GITHUB_TOKEN }}
7676 filename : |
You can’t perform that action at this time.
0 commit comments