Skip to content

Merge pull request #41 from GrantBirki/dependabot/bundler/dev-ruby-de… #92

Merge pull request #41 from GrantBirki/dependabot/bundler/dev-ruby-de…

Merge pull request #41 from GrantBirki/dependabot/bundler/dev-ruby-de… #92

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@v4
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # pin@v1.190.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