Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ruby 3.3 #267

Merged
merged 4 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/cruby-build-and-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ on:

env:
CACHE_KEY_PREFIX: "cruby-v1"

# "3.1,3.2" # SUPPORTED_RUBY_VERSIONS
# ["3.1", "3.2"] # SUPPORTED_RUBY_MATRIX
# "3.2" # LATEST_RUBY_VERSION
SUPPORTED_RUBY_VERSIONS: "3.1,3.2,3.3"
LATEST_RUBY_VERSION: "3.3"

jobs:
cruby-package:
Expand All @@ -37,15 +35,15 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2" # LATEST_RUBY_VERSION
ruby-version: "${{ env.LATEST_RUBY_VERSION }}"

- uses: oxidize-rb/actions/cross-gem@main
id: cross-gem
with:
platform: ${{ matrix.platform }}
ruby-versions: "3.1,3.2" # SUPPORTED_RUBY_VERSIONS
ruby-versions: "${{ env.SUPPORTED_RUBY_VERSIONS }}"

- uses: oxidize-rb/actions/test-gem-build@main
with:
platform: ${{ matrix.platform }}
ruby-versions: "3.1,3.2" # SUPPORTED_RUBY_VERSIONS
ruby-versions: "${{ env.SUPPORTED_RUBY_VERSIONS }}"
16 changes: 8 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
ruby-version: 3.3
rubygems: latest
bundler-cache: true # 'bundle install' and cache
- name: Rubocop
Expand All @@ -26,13 +26,13 @@ jobs:
rust:
- stable
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Obtain Rust
run: rustup override set ${{ matrix.rust }}
- name: Obtain Rust
run: rustup override set ${{ matrix.rust }}

- name: Check clippy
run: rustup component add clippy && cargo clippy
- name: Check clippy
run: rustup component add clippy && cargo clippy

- name: Check formatting
run: rustup component add rustfmt && cargo fmt -- --check
- name: Check formatting
run: rustup component add rustfmt && cargo fmt -- --check
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
ruby:
- 3.2

steps:
- uses: actions/checkout@v4

- uses: oxidize-rb/actions/setup-ruby-and-rust@main
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: 3.3
rubygems: latest
bundler-cache: true
cargo-cache: true
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.1
3.3.0
Loading