Skip to content

build(deps): bump ruby/setup-ruby from 1.318.0 to 1.321.0 in the github-actions group across 1 directory #512

build(deps): bump ruby/setup-ruby from 1.318.0 to 1.321.0 in the github-actions group across 1 directory

build(deps): bump ruby/setup-ruby from 1.318.0 to 1.321.0 in the github-actions group across 1 directory #512

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:
permissions:
contents: read
jobs:
build:
name: build
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v7
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # pin@v1.321.0
with:
bundler-cache: true
- name: bootstrap
run: script/bootstrap
- name: build
run: |
GEM_NAME=$(ls | grep gemspec | cut -d. -f1)
echo "Attempting to build gem $GEM_NAME..."
gem build $GEM_NAME
if [ $? -eq 0 ]; then
echo "Gem built successfully!"
else
echo "Gem build failed!"
exit 1
fi