Skip to content

Commit

Permalink
Use oxidize-rb/actions/cross-gem@v1 instead of oxidize-rb/cross-gem-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Jan 16, 2025
1 parent 3c7cac6 commit 928bd49
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,20 @@ jobs:
id: transform_platform
run: echo "cross_gem_platform=$(echo '${{ matrix.platform }}' | sed 's/-gnu$//')" >> $GITHUB_ENV

- uses: oxidize-rb/cross-gem-action@main
- uses: oxidize-rb/actions/cross-gem@v1
id: cross-gem
with:
platform: ${{ env.cross_gem_action_platform }}
version: 'latest'
env: |
RUBY_CC_VERSION=3.4.0:3.3.5:3.2.0:3.1.0
- uses: actions/download-artifact@v3
with:
name: cross-gem
path: pkg/
ruby-versions: '3.1,3.2,3.3,3.4'

- name: Display structure of built gems
run: ls -R
working-directory: pkg/
working-directory: ${{ steps.cross-gem.outputs.gem-path }}

- name: Release gem
if: startsWith(github.ref, 'refs/tags/v')
working-directory: pkg/
working-directory: ${{ steps.cross-gem.outputs.gem-path }}
env:
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
run: |
Expand Down

0 comments on commit 928bd49

Please sign in to comment.