Skip to content

Commit f7f1cbe

Browse files
committed
FIx
1 parent 92f5cbc commit f7f1cbe

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

.github/workflows/clang-format.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: C Code Linting
1+
name: C Code Formatting Check
22

33
on:
44
push:
@@ -17,15 +17,26 @@ on:
1717
jobs:
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

0 commit comments

Comments
 (0)