| 1 |
# |
| 2 |
# Copyright 2023 The Sigstore Authors. |
| 3 |
# |
| 4 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
# you may not use this file except in compliance with the License. |
| 6 |
# You may obtain a copy of the License at |
| 7 |
# |
| 8 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
# |
| 10 |
# Unless required by applicable law or agreed to in writing, software |
| 11 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
# See the License for the specific language governing permissions and |
| 14 |
# limitations under the License. |
| 15 |
|
| 16 |
name: Check Ruby build |
| 17 |
|
| 18 |
permissions: |
| 19 |
contents: read |
| 20 |
|
| 21 |
on: |
| 22 |
push: |
| 23 |
branches: [main] |
| 24 |
pull_request: {} |
| 25 |
|
| 26 |
jobs: |
| 27 |
build: |
| 28 |
name: Build Ruby generated code |
| 29 |
strategy: |
| 30 |
matrix: |
| 31 |
ruby-version: |
| 32 |
- '3.2' |
| 33 |
- '3.3' |
| 34 |
- '3.4' |
| 35 |
- '4.0' |
| 36 |
fail-fast: false |
| 37 |
|
| 38 |
runs-on: ubuntu-latest |
| 39 |
defaults: |
| 40 |
run: |
| 41 |
working-directory: gen/pb-ruby |
| 42 |
|
| 43 |
steps: |
| 44 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 45 |
with: |
| 46 |
persist-credentials: false |
| 47 |
- name: Set up Ruby ${{ matrix.ruby-version }} |
| 48 |
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0 |
| 49 |
with: |
| 50 |
ruby-version: ${{ matrix.ruby-version }} |
| 51 |
|
| 52 |
- name: Build |
| 53 |
run: | |
| 54 |
gem build sigstore_protobuf_specs.gemspec |