Skip to content

Commit bf1bad3

Browse files
authored
Fix Ruby binding test repo checkout (#1048)
The Ruby binding test now checks out the revision of the `ruby` repo selected in `mmtk-ruby/mmtk/Cargo.toml` instead of the latest revision.
1 parent e55f872 commit bf1bad3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/post-review-ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,21 @@ jobs:
192192
path: mmtk-ruby
193193
ref: ${{ needs.binding-refs.outputs.ruby_binding_ref }}
194194

195+
- name: Setup script dependencies
196+
run: ./.github/scripts/ci-setup-script-deps.sh
197+
working-directory: mmtk-ruby
198+
199+
- name: Determine Ruby repository and revision
200+
id: extract-ruby-revision
201+
run: python ./.github/scripts/extract-ruby-revision.py ./mmtk/Cargo.toml --github-output=$GITHUB_OUTPUT
202+
working-directory: mmtk-ruby
203+
195204
- name: Checkout Ruby
196205
uses: actions/checkout@v3
197206
with:
198-
repository: mmtk/ruby
207+
repository: ${{ steps.extract-ruby-revision.outputs.ruby_repo }}
208+
ref: ${{ steps.extract-ruby-revision.outputs.ruby_rev }}
199209
path: ruby
200-
ref: mmtk
201210

202211
- name: Override mmtk-core dependency for binding
203212
run: ./.github/scripts/ci-replace-mmtk-dep.sh ../mmtk-ruby/mmtk/Cargo.toml --mmtk-core-path .

0 commit comments

Comments
 (0)