Bump ruby/setup-ruby from 1.188.0 to 1.203.0 in the github-actions group across 1 directory #225
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@2a18b06812b0e15bb916e1df298d3e740422c47e # pin@v1.203.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 |