Skip to content

Commit

Permalink
👷 Add a CRuby gem build CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanhiltunen committed Jul 20, 2024
1 parent dfcdc8e commit 80514e5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/cruby-build-and-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test CRuby Gem Build
on: workflow_dispatch
env:
CACHE_KEY_PREFIX: "cruby-v1"
SUPPORTED_RUBY_VERSIONS: "3.1,3.2,3.3"
LATEST_RUBY_VERSION: "3.3"
jobs:
cruby-package:
name: Compile native gem
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- x86_64-linux
- aarch64-linux
- x86_64-darwin
- arm64-darwin
- x64-mingw-ucrt
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.LATEST_RUBY_VERSION }}"
- uses: oxidize-rb/actions/cross-gem@main
id: cross-gem
with:
platform: ${{ matrix.platform }}
ruby-versions: "${{ env.SUPPORTED_RUBY_VERSIONS }}"
- uses: oxidize-rb/actions/test-gem-build@main
with:
platform: ${{ matrix.platform }}
ruby-versions: "${{ env.SUPPORTED_RUBY_VERSIONS }}"

0 comments on commit 80514e5

Please sign in to comment.