Skip to content
Merged
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
21 changes: 13 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -105,15 +107,18 @@ 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
cp staged/3.2/executorch.* lib/executorch/3.2/
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 }}")
Expand Down
Loading