Skip to content

Commit

Permalink
Make cross gem testing easier
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Jul 13, 2023
1 parent 332853a commit 07442ee
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/cross-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.2"

- name: Patch rb-sys version
run: |
mkdir -p .cargo
echo "[patch.crates-io]\nrb-sys = { git = \"https://github.com/oxidize-rb/rb-sys\", branch = \"${{ github.event.inputs.tags }}\" }" >> .cargo/config.toml
echo "[patch.crates-io]" >> .cargo/config.toml
echo "rb-sys = { git = \"https://github.com/oxidize-rb/rb-sys\", branch = \"${{ github.event.inputs.tags }}\" }" >> .cargo/config.toml
sed -i "s|gem 'rb-sys', '.*'|gem 'rb-sys', github: 'oxidize-rb/rb-sys', branch: '${{ github.event.inputs.tags }}'|g" Gemfile
- uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.2"
bundle install --jobs 4 --retry 3
cargo update -p rb-sys
- uses: oxidize-rb/actions/cross-gem@v1
with:
Expand Down

0 comments on commit 07442ee

Please sign in to comment.