Skip to content

Commit

Permalink
Verify the MMTk bindgen in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Oct 11, 2024
1 parent 020038e commit 91714aa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/sharedgc-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ jobs:
echo "RUBY_GC_LIBRARY=librubygc.${{ matrix.gc_name }}.dylib" >> $GITHUB_ENV
make shared-gc SHARED_GC=${{ matrix.gc_name }} MMTK_BUILD=${{ matrix.build }}
- name: Verify MMTk bindgen
run: |
cd ../src/gc/mmtk
cargo install --force cbindgen@0.26.0
cbindgen --config cbindgen.toml --output ../mmtk.h
if read -n1 -d '' < <(git diff ../mmtk.h); then
git diff ../mmtk.h
exit 1
fi
if: ${{ matrix.gc_name == 'mmtk' }}

- run: make prepare-gems
if: ${{ matrix.test_task == 'test-bundled-gems' }}

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/sharedgc-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ jobs:
echo "RUBY_GC_LIBRARY=librubygc.${{ matrix.gc_name }}.so" >> $GITHUB_ENV
make shared-gc SHARED_GC=${{ matrix.gc_name }} MMTK_BUILD=${{ matrix.build }}
- name: Verify MMTk bindgen
run: |
cd ../src/gc/mmtk
cargo install --force cbindgen@0.26.0
cbindgen --config cbindgen.toml --output ../mmtk.h
if read -n1 -d '' < <(git diff ../mmtk.h); then
git diff ../mmtk.h
exit 1
fi
if: ${{ matrix.gc_name == 'mmtk' }}

- run: $SETARCH make

- run: |
Expand Down

0 comments on commit 91714aa

Please sign in to comment.