File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed
Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,20 @@ jobs:
2222 steps :
2323 - uses : actions/checkout@v4
2424
25- - name : Set up Ruby
26- uses : ruby/ setup-ruby@v1
25+ - name : Set up Ruby and Rust
26+ uses : oxidize-rb/actions/ setup-ruby-and-rust @v1
2727 with :
2828 ruby-version : ${{ matrix.ruby }}
2929 bundler-cache : true
30-
31- - name : Set up Rust
32- uses : dtolnay/rust-toolchain@stable
30+ cargo-cache : true
3331
3432 - name : Build extension
3533 run : bundle exec rake compile
3634
3735 - name : Run tests
3836 run : bundle exec rake spec
3937
40- # Build native gems for different platforms using rake-compiler-dock
38+ # Build native gems for different platforms using oxidize-rb/cross-gem
4139 cross-gem :
4240 name : Build native gem for ${{ matrix.platform }}
4341 runs-on : ubuntu-latest
@@ -62,14 +60,11 @@ jobs:
6260 ruby-version : " 3.3"
6361 bundler-cache : true
6462
65- - name : Install dependencies
66- run : bundle install
67-
68- - name : Build native gem for ${{ matrix.platform }}
69- run : |
70- bundle exec rake native:${{ matrix.platform }}:gem
71- env :
72- RUBY_CC_VERSION : " 3.0.0:3.1.0:3.2.0:3.3.0"
63+ - name : Build native gem
64+ uses : oxidize-rb/actions/cross-gem@v1
65+ with :
66+ platform : ${{ matrix.platform }}
67+ ruby-versions : " 3.0, 3.1, 3.2, 3.3"
7368
7469 - name : Upload gem artifact
7570 if : inputs.upload-artifacts
You can’t perform that action at this time.
0 commit comments