forked from ruby/json
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hoping it might find the leak reported in ruby#460
- Loading branch information
Showing
4 changed files
with
71 additions
and
30 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
jobs: | ||
ruby-versions: | ||
uses: ruby/actions/.github/workflows/ruby_versions.yml@master | ||
with: | ||
engine: cruby-jruby | ||
min_version: 2.7 | ||
|
||
host: | ||
needs: ruby-versions | ||
name: ${{ matrix.os }} ${{ matrix.ruby }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
- macos-13 | ||
- macos-14 | ||
- windows-latest | ||
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | ||
include: | ||
- { os: windows-latest , ruby: mswin } # ruby/ruby windows CI | ||
- { os: ubuntu-latest , ruby: jruby-9.4 } # Ruby 3.1 | ||
- { os: macos-latest , ruby: truffleruby-head } | ||
- { os: ubuntu-latest , ruby: truffleruby-head } | ||
exclude: | ||
- { os: windows-latest, ruby: jruby } | ||
- { os: windows-latest, ruby: jruby-head } | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby-pkgs@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
apt-get: ragel | ||
brew: ragel | ||
|
||
- run: | | ||
bundle config --without benchmark | ||
bundle install | ||
- run: rake compile | ||
|
||
- run: rake test | ||
|
||
- run: rake build | ||
|
||
- run: gem install pkg/*.gem | ||
if: ${{ matrix.ruby != '3.2' }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ else | |
end | ||
|
||
group :development do | ||
gem "ruby_memcheck" | ||
gem "ostruct" | ||
gem "rake" | ||
gem "rake-compiler" | ||
|
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