diff --git a/.github/workflows/cross_compile.yml b/.github/workflows/cross_compile.yml index a8cb8ac..93d9420 100644 --- a/.github/workflows/cross_compile.yml +++ b/.github/workflows/cross_compile.yml @@ -1,11 +1,6 @@ --- -name: CI - -on: - workflow_dispatch: - push: - tags: - - "v*" +name: cross-compile +on: [push] jobs: ci-data: @@ -16,7 +11,8 @@ jobs: - uses: oxidize-rb/actions/fetch-ci-data@v1 id: fetch with: - supported-ruby-platforms: true + supported-ruby-platforms: | + exclude: ['aarch64-linux-musl', 'x64-mingw32'] stable-ruby-versions: | exclude: [head] cross-gem: @@ -32,7 +28,9 @@ jobs: - uses: ruby/setup-ruby@v1 with: ruby-version: "3.1" - + - name: 'bundle install' + shell: bash + run: 'bundle install' - uses: oxidize-rb/actions/cross-gem@v1 id: cross-gem with: diff --git a/Gemfile.lock b/Gemfile.lock index 5975b03..e436b4f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,7 +2,7 @@ PATH remote: . specs: tiktoken_ruby (0.0.8) - rb_sys (>= 0.9.86) + rb_sys (= 0.9.87) GEM remote: https://rubygems.org/ @@ -22,7 +22,7 @@ GEM rake (13.1.0) rake-compiler (1.2.5) rake - rb_sys (0.9.86) + rb_sys (0.9.87) regexp_parser (2.9.0) rexml (3.2.6) rspec (3.12.0) @@ -89,4 +89,4 @@ DEPENDENCIES yard-doctest BUNDLED WITH - 2.4.6 + 2.4.4 diff --git a/ext/tiktoken_ruby/Cargo.toml b/ext/tiktoken_ruby/Cargo.toml index 046b1be..2d1df26 100644 --- a/ext/tiktoken_ruby/Cargo.toml +++ b/ext/tiktoken_ruby/Cargo.toml @@ -11,5 +11,5 @@ crate-type = ["cdylib"] [dependencies] magnus = { version = "0.6.1" } -rb-sys = { version = "*", features = ["stable-api-compiled-fallback"] } +rb-sys = { version = "0.9.87", features = ["stable-api-compiled-fallback"] } tiktoken-rs = { git = "https://github.com/IAPark/tiktoken-rs.git" } diff --git a/tiktoken_ruby.gemspec b/tiktoken_ruby.gemspec index 318e65b..981a4ee 100644 --- a/tiktoken_ruby.gemspec +++ b/tiktoken_ruby.gemspec @@ -29,5 +29,5 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] spec.extensions = ["ext/tiktoken_ruby/extconf.rb"] - spec.add_dependency "rb_sys", ">= 0.9.86" + spec.add_dependency "rb_sys", "= 0.9.87" end