Skip to content

Commit 5ddaf8f

Browse files
authored
Merge pull request #2926 from Shopify/compile-clang
Add Clang compilation CI job on Ubuntu
2 parents bda92fb + bb9d9dc commit 5ddaf8f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,37 @@ jobs:
110110
run: |
111111
bin/setup
112112
- run: bundle exec rake clean compile_c99
113+
114+
clang_compile:
115+
runs-on: macos-latest
116+
strategy:
117+
fail-fast: false
118+
matrix:
119+
ruby: ['4.0', head]
120+
steps:
121+
- uses: actions/checkout@v6
122+
- name: Install dependencies
123+
run: |
124+
brew install ruby-build
125+
- uses: ruby/setup-ruby@v1
126+
with:
127+
ruby-version: ${{ matrix.ruby }}
128+
bundler: none
129+
- name: Set working directory as safe
130+
run: git config --global --add safe.directory $(pwd)
131+
- name: Update rubygems & bundler
132+
run: |
133+
ruby -v
134+
gem update --system
135+
- name: install erb
136+
run: gem install erb
137+
- name: clang version
138+
run: clang --version
139+
- name: bundle config set force_ruby_platform true if head
140+
if: ${{ contains(matrix.ruby, 'head') }}
141+
run: |
142+
bundle config set force_ruby_platform true
143+
- name: bin/setup
144+
run: |
145+
bin/setup
146+
- run: bundle exec rake clean compile

0 commit comments

Comments
 (0)