Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/test_ruby_gem_uploads/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ runs:
TRUNK_PUBLIC_API_ADDRESS: ${{ inputs.trunk-public-api-address }}
TRUNK_ORG_URL_SLUG: ${{ inputs.trunk-org-slug }}
TRUNK_API_TOKEN: ${{ inputs.trunk-token }}
# Fix for macOS 15 Intel connection failures due to "Happy Eyeballs" algorithm
# See: https://bugs.ruby-lang.org/issues/21104
RUBY_TCP_NO_FAST_FALLBACK: 1
TRUNK_DEBUG: 1
51 changes: 22 additions & 29 deletions .github/workflows/release_ruby_gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:
strategy:
matrix:
platform:
- x86_64-linux
- aarch64-linux
- arm64-darwin
- x86_64-darwin
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -77,6 +74,8 @@ jobs:
file: context-ruby/context_ruby.gemspec

- uses: oxidize-rb/actions/cross-gem@v1
env:
CARGO_PROFILE_RELEASE_OPT_LEVEL: "1"
with:
platform: ${{ matrix.platform }}
working-directory: context-ruby
Expand All @@ -97,12 +96,6 @@ jobs:
matrix:
ruby-version: ["3.0", "3.1", "3.2", "3.3", "3.4"]
platform:
- name: x86_64-linux
os: ubuntu-latest
- name: aarch64-linux
os: ubuntu-24.04-arm
- name: arm64-darwin
os: macos-latest
- name: x86_64-darwin
os: macos-15-intel
steps:
Expand All @@ -115,24 +108,24 @@ jobs:
platform: ${{ matrix.platform.name }}
artifact-pattern: cross-gem-${{ matrix.platform.name }}

publish_ruby_gem:
runs-on: ubuntu-latest
needs: test-ruby-gem
steps:
- uses: actions/checkout@v4
# publish_ruby_gem:
# runs-on: ubuntu-latest
# needs: test-ruby-gem
# steps:
# - uses: actions/checkout@v4

- uses: rubygems/configure-rubygems-credentials@main
with:
role-to-assume: rg_oidc_akr_vxb9d9w6dob8q6sr6jz5
- uses: actions/download-artifact@v4
with:
pattern: cross-gem-*
path: context-ruby/pkg/
merge-multiple: true
- working-directory: context-ruby
run: |
set -euxo pipefail
find pkg
for i in $(ls pkg/*.gem); do
gem push $i
done
# - uses: rubygems/configure-rubygems-credentials@main
# with:
# role-to-assume: rg_oidc_akr_vxb9d9w6dob8q6sr6jz5
# - uses: actions/download-artifact@v4
# with:
# pattern: cross-gem-*
# path: context-ruby/pkg/
# merge-multiple: true
# - working-directory: context-ruby
# run: |
# set -euxo pipefail
# find pkg
# for i in $(ls pkg/*.gem); do
# gem push $i
# done
Loading
Loading