diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8883f817..409eaa34 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,6 +4,8 @@ name: Build and push docker images on: workflow_dispatch: push: + branches: + - main concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -101,7 +103,7 @@ jobs: rb_sys_dock_cache_dir="$HOME/.cache/rb-sys-dock" sudo chmod 777 tmp/oxi-test cd tmp/oxi-test - sed -i "s|gem 'rb_sys', '.*'|gem 'rb_sys', path: '$rb_sys_gem_path/gem'|" Gemfile + ruby -e "File.write('Gemfile', File.read('Gemfile').gsub(/gem .rb_sys.*$/, 'gem \"rb_sys\", git: \"https://github.com/oxidize-rb/rb-sys\", ref: \"$GITHUB_SHA\"'))" mkdir .cargo echo "[patch.crates-io]" >> .cargo/config.toml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index d6e8a6f4..a93fe10d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -19,19 +19,19 @@ jobs: repo: - name: "oxidize-rb/oxi-test" slug: oxi-test - ref: main - run: rake + ref: ead2c358a6cde270863e686c7302fb56a333febc + run: bundle exec rake compile && bundle exec ruby -rminitest/autorun -Itest test/oxi/test_test.rb && cargo test - name: "matsadler/magnus" slug: magnus-0.5 ref: "0.5.5" run: cargo test - name: "matsadler/magnus" slug: magnus-head - ref: "627755429885eb1a84929e4d876f8cd8ec7303cf" + ref: "52a0817d4327cf78f91958f6b84f66946251fc9c" run: cargo test os: ["ubuntu-latest", "windows-latest", "macos-latest"] rust: ["stable"] - ruby: ["2.7", "3.2", "3.3"] + ruby: ["3.0", "3.2", "3.3"] runs-on: ${{ matrix.os }} steps: diff --git a/crates/rb-sys-build/src/cc.rs b/crates/rb-sys-build/src/cc.rs index d2e95d9b..d4f79dd2 100644 --- a/crates/rb-sys-build/src/cc.rs +++ b/crates/rb-sys-build/src/cc.rs @@ -92,7 +92,7 @@ impl Build { .with_extension("o"); let mut cmd = compiler; - cmd.args(&get_include_args(rb)) + cmd.args(get_include_args(rb)) .arg("-c") .arg(f) .args(&rb.cflags) diff --git a/crates/rb-sys-tests/Cargo.toml b/crates/rb-sys-tests/Cargo.toml index 0a6bb538..8fd70651 100644 --- a/crates/rb-sys-tests/Cargo.toml +++ b/crates/rb-sys-tests/Cargo.toml @@ -22,3 +22,8 @@ rusty-fork = "0.3.0" [build-dependencies] rb-sys-env = { path = "../rb-sys-env" } + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + "cfg(ruby_has_ruby_abi_version,)", +] } diff --git a/crates/rb-sys/src/bindings.rs b/crates/rb-sys/src/bindings.rs index 8e527801..6f6ad771 100644 --- a/crates/rb-sys/src/bindings.rs +++ b/crates/rb-sys/src/bindings.rs @@ -13,6 +13,7 @@ #![allow(rustdoc::invalid_rust_codeblocks)] #![allow(rustdoc::invalid_html_tags)] #![allow(deprecated)] +#![allow(dead_code)] include!(env!("RB_SYS_BINDINGS_PATH"));