Update Bundler to avoid permission error on GHA #1189
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruby on Windows | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
merge_group: {} | |
jobs: | |
compile: | |
runs-on: "windows-latest" | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ['3.2', '3.3', ucrt, mswin] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: load ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
# ucrt and mswin have the dev version Ruby. | |
# It introduce checksum mismatches for bundled gems. So remove them before `bundle install` | |
- name: Purge gem caches | |
run: | | |
Remove-Item D:\ruby-${{ matrix.ruby }}\lib\ruby\gems\*\cache\*.gem | |
- name: bundle install | |
run: | | |
bundle config set without profilers libs | |
bundle install | |
- name: compile | |
run: bundle exec rake compile |