Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,37 @@ jobs:
run: |
bin/setup
- run: bundle exec rake clean compile_c99

clang_compile:
runs-on: macos-latest
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use macos runner, not ubuntu, to make sure ruby is built with clang.

strategy:
fail-fast: false
matrix:
ruby: ['4.0', head]
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
brew install ruby-build
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: none
- name: Set working directory as safe
run: git config --global --add safe.directory $(pwd)
- name: Update rubygems & bundler
run: |
ruby -v
gem update --system
- name: install erb
run: gem install erb
- name: clang version
run: clang --version
- name: bundle config set force_ruby_platform true if head
if: ${{ contains(matrix.ruby, 'head') }}
run: |
bundle config set force_ruby_platform true
- name: bin/setup
run: |
bin/setup
- run: bundle exec rake clean compile