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
55 changes: 55 additions & 0 deletions .github/workflows/release_ruby_gem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---

Check failure on line 1 in .github/workflows/release_ruby_gem.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

checkov(CKV2_GHA_1)

[new] Ensure top-level permissions are not set to write-all
name: Release Ruby Gem

on:
pull_request:

Check failure on line 5 in .github/workflows/release_ruby_gem.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(empty-values)

[new] empty value in block mapping

jobs:
ci-data:
runs-on: ubuntu-latest
outputs:
result: ${{ steps.fetch.outputs.result }}
steps:
- uses: oxidize-rb/actions/fetch-ci-data@v1
id: fetch
with:
supported-ruby-platforms: |
exclude: [arm-linux]
stable-ruby-versions: |
exclude: [head]
cross-gem:
name: Compile native gem for ${{ matrix.platform }}
runs-on: ubuntu-latest
needs: ci-data
strategy:
matrix:
platform:
- x86_64-linux
- x86_64-linux-musl
- aarch64-linux
- aarch64-linux-musl
- arm-linux
- arm64-darwin
- x86_64-darwin
steps:
- uses: actions/checkout@v2

Check failure on line 35 in .github/workflows/release_ruby_gem.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

actionlint(action)

[new] the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue

- uses: oxidize-rb/actions/setup-ruby-and-rust@main
with:
rubygems: latest
ruby-version: "3.1"
bundler-cache: false
cargo-cache: false
cargo-vendor: false

- uses: oxidize-rb/actions/cross-gem@v1
id: cross-gem
with:
platform: ${{ matrix.platform }}
ruby-versions: 3.1
working-directory: context-ruby

- uses: actions/upload-artifact@v4
with:
name: cross-gem-${{ matrix.platform }}
path: ${{ steps.cross-gem.outputs.gem-path }}
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AllCops:
TargetRubyVersion: 3.1
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runtimes:
enabled:
- [email protected]
- [email protected]
- [email protected].0
- [email protected].4
- rust@2024-05-01
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
Expand Down
2 changes: 2 additions & 0 deletions context-ruby/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
lib/**/*.bundle
lib/**/*.so
pkg/**
tmp
*.gem
Loading
Loading