From 07442ee5e780354f7fc9a230bbd16d2164852628 Mon Sep 17 00:00:00 2001 From: Ian Ker-Seymer Date: Thu, 13 Jul 2023 13:59:04 -0400 Subject: [PATCH] Make cross gem testing easier --- .github/workflows/cross-gem.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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: