1 file changed
+16
.github/workflows/ci.yml
+16
@@ -224,6 +224,22 @@ jobs:
224
key: check-ruby-gem
225
workspaces: sdk/gems/auth
226
227
+ # CI validates the unreleased workspace version. Derive the local crate
228
+ # patches from the extension manifest; release builds deliberately
229
+ # resolve published crates after the release workflow has run.
230
+ - name: Use workspace Rust crates for the gem check
231
+ shell: bash
232
+ run: |
233
+ mkdir -p sdk/gems/auth/.cargo
234
+ {
235
+ echo "[patch.crates-io]"
236
+ awk -F '=' '/^smbcloud-[[:alnum:]-]+[[:space:]]*=/ {
237
+ name = $1
238
+ gsub(/[[:space:]]/, "", name)
239
+ print name " = { path = \"../../../crates/" name "\" }"
240
+ }' sdk/gems/auth/ext/auth/Cargo.toml
241
+ } > sdk/gems/auth/.cargo/config.toml
242
+
243
- name: Setup Ruby
244
uses: ruby/setup-ruby@v1
245
with: