ci: create precompiled gems and push to RubyGems automatically
Upon a tag, this commit adds:
- A
build_gems
stage that cross-compiles native gems - A
gem_smoke_test
that installs the x86 gem and checks if the Rust extension is available. - Pushes the gems to RubyGems.
Sample push: https://gitlab.com/gitlab-org/ruby/gems/prometheus-client-mmap/-/jobs/4153088935
Edited by Stan Hu