Skip to content

Commit 1ae765a

Browse files
committed
ci: add LLVM version to the matrix
1 parent 63d342a commit 1ae765a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
ruby: [head, 3.0, 2.7, 2.6]
16+
llvm: ["6.0", 7, 8, 9, 10]
1617
os: [ ubuntu-18.04, macos-latest ]
1718

18-
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
19+
name: Ruby ${{ matrix.ruby }} / LLVM ${{ matrix.llvm }} on ${{ matrix.os }}
1920
runs-on: ${{ matrix.os }}
2021
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
2122

@@ -25,13 +26,13 @@ jobs:
2526
if: runner.os == 'Linux'
2627
run: |
2728
sudo apt update
28-
sudo apt install -y libclang-6.0-dev llvm-6.0 clang-6.0
29+
sudo apt install -y libclang-${{ matrix.llvm }}-dev llvm-${{ matrix.llvm }} clang-${{ matrix.llvm }}
2930
- name: Set up Ruby ${{ matrix.ruby }}
3031
uses: ruby/setup-ruby@v1
3132
with:
3233
ruby-version: ${{ matrix.ruby }}
3334
bundler-cache: true
3435
- name: Run tests
3536
run: |
36-
[ -x /usr/bin/llvm-config-6.0 ] && export LLVM_CONFIG=llvm-config-6.0
37+
[ -x /usr/bin/llvm-config-${{ matrix.llvm }} ] && export LLVM_CONFIG=llvm-config-${{ matrix.llvm }}
3738
bundle exec rake

0 commit comments

Comments
 (0)