From 59742c4400d9015a6408d36f3fff0ae9895f3ae0 Mon Sep 17 00:00:00 2001 From: Benjamin Garcia Date: Fri, 20 Nov 2026 12:43:34 -0800 Subject: [PATCH] fix(release): require fileutils and isolate bundler across Ruby 3.2-3.4 steps --- .github/workflows/release.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32b932c..bb9f273 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,22 +69,22 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + cache-dependency-glob: "test/fixtures/pyproject.toml" - name: Export fixtures for pre-release verification run: | uv run --project test/fixtures python test/fixtures/export_fixtures.py --out test/fixtures/models - - name: Build fat extension for Ruby 3.2, 3.3, 3.4 - run: | - mkdir -p staged_lib - echo "matrix=${{ matrix.platform }}" - - name: Compile Ruby 3.2 extension uses: ruby/setup-ruby@v1 with: ruby-version: "3.2" - bundler-cache: true + bundler-cache: false - run: | + rm -rf Gemfile.lock .bundle vendor/bundle + bundle install --jobs 4 EXECUTORCH_BUNDLE_VENDOR=1 bundle exec rake sdk:fetch compile bundle exec rake test mkdir -p staged/3.2 @@ -94,8 +94,10 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: "3.3" - bundler-cache: true + bundler-cache: false - run: | + rm -rf Gemfile.lock .bundle vendor/bundle + bundle install --jobs 4 EXECUTORCH_BUNDLE_VENDOR=1 bundle exec rake clean compile bundle exec rake test mkdir -p staged/3.3 @@ -105,8 +107,10 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: "3.4" - bundler-cache: true + bundler-cache: false - run: | + rm -rf Gemfile.lock .bundle vendor/bundle + bundle install --jobs 4 EXECUTORCH_BUNDLE_VENDOR=1 bundle exec rake clean compile bundle exec rake test mkdir -p lib/executorch/3.2 lib/executorch/3.3 lib/executorch/3.4 @@ -114,6 +118,7 @@ jobs: cp staged/3.3/executorch.* lib/executorch/3.3/ mv lib/executorch/executorch.* lib/executorch/3.4/ ruby -e ' + require "fileutils" require "rubygems/package" spec = Gem::Specification.load("executorch.gemspec") spec.platform = Gem::Platform.new("${{ matrix.platform }}")