File tree Expand file tree Collapse file tree 1 file changed +23
-12
lines changed
Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Original file line number Diff line number Diff line change 1- name : C Code Linting
1+ name : C Code Formatting Check
22
33on :
44 push :
1717jobs :
1818 format-check :
1919 runs-on : ubuntu-latest
20-
2120 steps :
22- - uses : actions/checkout@v4
23- - name : Install clang-format
24- run : sudo apt-get install -y clang-format
25- - name : Setup Ruby
26- uses : ruby/setup-ruby@v1
27- with :
28- ruby-version : ' 3.4'
29- bundler-cache : true
30- - name : Check C code linting
31- run : bundle exec rake format:c_check
21+ - uses : actions/checkout@v4
22+ - uses : ruby/setup-ruby@v1
23+ with :
24+ ruby-version : " 3.4"
25+ bundler-cache : none
26+ - name : Set working directory as safe
27+ run : git config --global --add safe.directory $(pwd)
28+ - name : Set up permission
29+ run : chmod -R o-w /opt/hostedtoolcache/Ruby
30+ - name : Install dependencies
31+ run : |
32+ sudo apt-get update
33+ sudo apt-get install -y libdb-dev curl autoconf automake m4 libtool clang-format
34+ - name : Update rubygems & bundler
35+ run : |
36+ ruby -v
37+ gem update --system
38+ - name : bin/setup
39+ run : |
40+ bin/setup
41+ - name : Check C code formatting
42+ run : bundle exec rake format:c_check
You can’t perform that action at this time.
0 commit comments