Skip to content

Commit 8a551a2

Browse files
Update cross-gem action to oxidize-rb/actions
We had been using the deprecated `oxidize-rb/cross-gem-action` action so far as the new one somehow didn't work. But it seems to be working now and the old one is broken now. So let's switch to the new one.
1 parent 0f1c86c commit 8a551a2

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/build-gems.yml

+11-13
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,18 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v4
3535

36-
- uses: oxidize-rb/actions/setup-ruby-and-rust@v1
36+
- uses: ruby/setup-ruby@v1
3737
with:
38-
ruby-version: "3.3"
39-
bundler-cache: true
40-
cargo-cache: true
41-
cargo-vendor: true
42-
cache-version: v2-${{ matrix.ruby-platform }}
38+
ruby-version: "3.4"
4339

44-
- name: Set vars
45-
id: vars
46-
run: |
47-
echo "rb-sys-version=$(bundle exec ruby -rrb_sys -e 'puts RbSys::VERSION')" >> $GITHUB_OUTPUT
48-
- uses: oxidize-rb/cross-gem-action@main
40+
- uses: oxidize-rb/actions/cross-gem@v1
41+
id: cross-gem
4942
with:
50-
version: ${{ steps.vars.outputs.rb-sys-version }}
5143
platform: ${{ matrix.ruby-platform }}
52-
ruby-versions: ${{ join(fromJSON(needs.ci-data.outputs.result).stable-ruby-versions, ', ') }}
44+
ruby-versions: ${{ join(fromJSON(needs.ci-data.outputs.result).stable-ruby-versions, ',') }}
45+
46+
- uses: actions/upload-artifact@v4
47+
with:
48+
name: cross-gem-${{ matrix.ruby-platform }}
49+
path: ${{ steps.cross-gem.outputs.gem-path }}
50+
if-no-files-found: error

0 commit comments

Comments
 (0)