Skip to content

Commit

Permalink
Add Ruby build CI for each supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwager committed Feb 12, 2024
1 parent 6f61230 commit 4b0e5cc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# https://www.ruby-lang.org/en/downloads/branches/
ruby-version:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- run: sudo apt update && sudo apt install -y ruby-dev
- run: gem build
- run: gem install --verbose ruzzy-*.gem
env:
RUZZY_DEBUG: "1"
MAKE: "make --environment-overrides V=1"
CC: "clang"
CXX: "clang++"
LDSHARED: "clang -shared"
LDSHAREDXX: "clang++ -shared"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Test

on:
pull_request:
Expand Down

0 comments on commit 4b0e5cc

Please sign in to comment.