Skip to content

Commit

Permalink
Sync workflow with wasmtime-rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Jan 4, 2024
1 parent 7ebcf6f commit 6f3a8e3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/build-gems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
- uses: oxidize-rb/actions/setup-ruby-and-rust@v1
with:
ruby-version: "3.2"
bundler-cache: false
bundler-cache: true
cargo-cache: true
cargo-vendor: true
cache-version: v2-${{ matrix.ruby-platform }}

- uses: oxidize-rb/actions/cross-gem@v1
id: cross-gem
- name: Set vars
id: vars
run: |
echo "rb-sys-version=$(bundle exec ruby -rrb_sys -e 'puts RbSys::VERSION')" >> $GITHUB_OUTPUT
- uses: oxidize-rb/cross-gem-action@main
with:
platform: ${{ matrix.platform }}
ruby-versions: ${{ join(fromJSON(needs.ci-data.outputs.result).stable-ruby-versions, ',') }}
tag: "0.9.85"

- uses: actions/upload-artifact@v4
with:
name: cross-gem
path: ${{ steps.cross-gem.outputs.gem-path }}
version: ${{ steps.vars.outputs.rb-sys-version }}
platform: ${{ matrix.ruby-platform }}
ruby-versions: ${{ join(fromJSON(needs.ci-data.outputs.result).stable-ruby-versions, ', ') }}

0 comments on commit 6f3a8e3

Please sign in to comment.