Skip to content

Commit

Permalink
Add CI with 3.3 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Nov 1, 2024
1 parent 14e27c3 commit 9e38bbd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ jobs:
if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }}
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby-truffleruby
min_version: 2.6
engine: cruby
min_version: 3.3

build:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
exclude:
- { os: windows-latest, ruby: head }
include:
- { os: windows-latest, ruby: mingw }
- { os: windows-latest, ruby: mswin }
Expand All @@ -35,7 +37,7 @@ jobs:
rubygems: ${{ matrix.ruby < '2.7' && '3.4.22' || '' }}
bundler-cache: true
- name: Run test
run: bundle exec rake compile test
run: ruby -I ./bundlelib -S bundle exec rake compile test
- id: fetch
run: |
: Fetch deeper for changelogs
Expand Down
7 changes: 7 additions & 0 deletions bundlelib/etc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'rbconfig'
sysconfdir = RbConfig::CONFIG["sysconfdir"]
if sysconfdir.empty? and sysconfdir = ENV["ProgramData"]
RbConfig::CONFIG["sysconfdir"] = sysconfdir
end
$:.remove(__dir__)
raise LoadError, "Do not load etc"

0 comments on commit 9e38bbd

Please sign in to comment.