Skip to content

Commit

Permalink
Merge pull request #8 from ruby/pz-header-check-actions
Browse files Browse the repository at this point in the history
Add CI to check that Ruby headers are up-to-date
  • Loading branch information
peterzhu2118 authored Dec 6, 2024
2 parents a8d0c50 + e1d07f1 commit c56b7f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/header_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Header check
on: [push, pull_request]

jobs:
header_check:
runs-on: ubuntu-latest
name: Check vendored Ruby headers
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- run: bundle exec rake vendor_ruby_headers
- run: git diff --no-ext-diff --ignore-submodules --exit-code
1 change: 1 addition & 0 deletions gc/gc_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ GC_IMPL_FN size_t rb_gc_impl_gc_count(void *objspace_ptr);
GC_IMPL_FN VALUE rb_gc_impl_latest_gc_info(void *objspace_ptr, VALUE key);
GC_IMPL_FN VALUE rb_gc_impl_stat(void *objspace_ptr, VALUE hash_or_sym);
GC_IMPL_FN VALUE rb_gc_impl_stat_heap(void *objspace_ptr, VALUE heap_name, VALUE hash_or_sym);
GC_IMPL_FN const char *rb_gc_impl_active_gc_name(void);
// Miscellaneous
GC_IMPL_FN size_t rb_gc_impl_obj_flags(void *objspace_ptr, VALUE obj, ID* flags, size_t max);
GC_IMPL_FN bool rb_gc_impl_pointer_to_heap_p(void *objspace_ptr, const void *ptr);
Expand Down

0 comments on commit c56b7f0

Please sign in to comment.