Skip to content

Commit

Permalink
fix: Windows Ruby 3.1 Native Extensions Installs (#139)
Browse files Browse the repository at this point in the history
A change in `ruby@3.1`, `rubygems`, and/or `bundler@2.3.23` is preventing native extensions both `sqlite3` and `nokogiri` on Windows.

I tried a few different incantations to force bundler to load platform specific versions of [`x64-mingw-ucrt`](#138),
however all attempts fell short in some way.

Locking the bundler version to 2.3.22 was the only way I could get the native extensions to install.

This is a temporary fix until we can figure out what changed in the bundler ecosystem to cause this issue.
  • Loading branch information
arielvalentin authored Oct 11, 2022
1 parent ddf9a7a commit 8ca60ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/test_gem/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ runs:
with:
ruby-version: "${{ inputs.ruby }}"
working-directory: "${{ steps.setup.outputs.dir }}"
bundler: "2.3.22"
bundler-cache: true
cache-version: "v1-${{ steps.setup.outputs.cache_key }}"

Expand All @@ -70,6 +71,7 @@ runs:
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ inputs.ruby }}"
bundler: "2.3.22"
- name: Install dependencies and appraisals
if: "${{ steps.setup.outputs.appraisals == 'true' }}"
shell: bash
Expand Down

0 comments on commit 8ca60ce

Please sign in to comment.