diff --git a/.github/workflows/cross-gem.yml b/.github/workflows/cross-gem.yml index 2f6fe0b..5bb3919 100644 --- a/.github/workflows/cross-gem.yml +++ b/.github/workflows/cross-gem.yml @@ -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: