Skip to content

Commit 013584a

Browse files
committed
Centralize C code's generation and formatting check
1 parent 04cb00f commit 013584a

File tree

2 files changed

+5
-27
lines changed

2 files changed

+5
-27
lines changed
Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
name: C Code Formatting Check
1+
name: C Code Generation and Formatting Check
22

33
on:
44
push:
5-
paths:
6-
- '**.c'
7-
- '**.h'
8-
- '.clang-format'
9-
- '.github/workflows/clang-format.yml'
10-
pull_request:
11-
paths:
12-
- '**.c'
13-
- '**.h'
14-
- '.clang-format'
15-
- '.github/workflows/clang-format.yml'
5+
pull_request: {}
6+
merge_group: {}
167

178
jobs:
189
format-check:
@@ -55,8 +46,8 @@ jobs:
5546
- name: bin/setup
5647
run: |
5748
bin/setup
58-
- name: Check C code formatting
49+
- name: Check C code generation and formatting
5950
run: |
6051
clang-format --version
61-
bundle exec rake templates
52+
bundle exec rake lexer templates compile confirm_lexer confirm_templates
6253
bundle exec rake format:c_check

.github/workflows/ruby.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
- ruby: "3.4"
2929
job: stdlib_test
3030
rubyopt: "--enable-frozen-string-literal"
31-
- ruby: "3.4"
32-
job: lexer templates compile confirm_lexer confirm_templates
3331
- ruby: "3.4"
3432
job: rubocop validate test_doc build test_generate_stdlib raap
3533
- ruby: "3.4"
@@ -50,17 +48,6 @@ jobs:
5048
run: |
5149
sudo apt-get update
5250
sudo apt-get install -y libdb-dev curl autoconf automake m4 libtool python3
53-
- name: Install Re2c
54-
if: ${{ contains(matrix.job, 'lexer') }}
55-
run: |
56-
cd /tmp
57-
curl -L https://github.com/skvadrik/re2c/archive/refs/tags/3.1.tar.gz > re2c-3.1.tar.gz
58-
tar xf re2c-3.1.tar.gz
59-
cd re2c-3.1
60-
autoreconf -i -W all
61-
./configure
62-
make
63-
sudo make install
6451
- name: Update rubygems & bundler
6552
run: |
6653
ruby -v

0 commit comments

Comments
 (0)