Skip to content

Commit 1ca4643

Browse files
committed
CI: Warn deprecated features to be removed at this version
1 parent ccc8610 commit 1ca4643

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/check_misc.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ jobs:
5353
exit $fail
5454
working-directory: include
5555

56+
- id: now
57+
run: |
58+
date +"mon=%-m"%n"day=%-d" >> $GITHUB_OUTPUT
59+
env:
60+
TZ: Tokyo/Asia
61+
62+
- id: deprecation
63+
run: |
64+
eval $(sed -n 's/^#define RUBY_API_VERSION_\(MAJOR\|MINOR\) /\1=/p' include/ruby/version.h)
65+
if git --no-pager grep --color -o 'rb_warn_deprecated_to_remove_at('$MAJOR'\.'$MINOR',.*' -- '*.c' >&2; then
66+
false
67+
else
68+
true
69+
fi
70+
continue-on-error: ${{ steps.now.outputs.mon < 12 }}
71+
5672
- name: Check if to generate documents
5773
id: rdoc
5874
run: |

0 commit comments

Comments
 (0)