Skip to content

Commit

Permalink
Fix gem release GitHub Actions workflow
Browse files Browse the repository at this point in the history
x86_64-linux-gnu and aarch64-linux-gnu do not exist as platforms in
`oxidize-rb/cross-gem-action`. Strip `-gnu` from the name.
  • Loading branch information
stanhu authored and eliias committed Jan 16, 2025
1 parent fa189b9 commit 3c7cac6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ jobs:
cargo-cache: true
cargo-vendor: true

- name: Transform platform name
id: transform_platform
run: echo "cross_gem_platform=$(echo '${{ matrix.platform }}' | sed 's/-gnu$//')" >> $GITHUB_ENV

- uses: oxidize-rb/cross-gem-action@main
with:
platform: ${{ matrix.platform }}
platform: ${{ env.cross_gem_action_platform }}
version: 'latest'
env: |
RUBY_CC_VERSION=3.4.0:3.3.5:3.2.0:3.1.0
Expand Down

0 comments on commit 3c7cac6

Please sign in to comment.