|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | test: |
| 12 | + name: ${{matrix.ruby}} on ${{matrix.os}} |
| 13 | + runs-on: ${{matrix.os}} |
| 14 | + |
12 | 15 | strategy: |
13 | 16 | fail-fast: false |
14 | 17 | matrix: |
15 | | - ruby: ['3.2', '3.3', '3.4', '4.0'] |
16 | | - runs-on: ubuntu-latest |
| 18 | + include: |
| 19 | + # Ubuntu - full Ruby matrix |
| 20 | + - { os: ubuntu-latest, ruby: "3.2" } |
| 21 | + - { os: ubuntu-latest, ruby: "3.3" } |
| 22 | + - { os: ubuntu-latest, ruby: "3.4" } |
| 23 | + - { os: ubuntu-latest, ruby: "4.0" } |
| 24 | + # macOS |
| 25 | + - { os: macos-latest, ruby: "4.0" } |
| 26 | + # Windows MinGW |
| 27 | + - { os: windows-latest, ruby: "4.0" } |
| 28 | + # Windows MSVC |
| 29 | + - { os: windows-latest, ruby: "mswin" } |
| 30 | + |
17 | 31 | steps: |
18 | 32 | - uses: actions/checkout@v6 |
19 | 33 |
|
20 | | - - name: Install LLVM and libclang |
21 | | - run: | |
22 | | - sudo apt-get install -y llvm libclang-dev |
23 | | - echo "LIBCLANG=$(llvm-config --libdir)/libclang.so" >> $GITHUB_ENV |
24 | | -
|
25 | 34 | - name: Set up Ruby |
26 | 35 | uses: ruby/setup-ruby@v1 |
27 | 36 | with: |
28 | | - ruby-version: ${{ matrix.ruby }} |
| 37 | + ruby-version: ${{matrix.ruby}} |
29 | 38 | bundler-cache: true |
| 39 | + mingw: clang llvm |
| 40 | + |
| 41 | + - name: Install LLVM and Clang (Ubuntu) |
| 42 | + if: runner.os == 'Linux' |
| 43 | + run: sudo apt-get update && sudo apt-get install -y llvm libclang-dev |
| 44 | + |
| 45 | + - name: Install LLVM and Clang (macOS) |
| 46 | + if: runner.os == 'macOS' |
| 47 | + run: brew install llvm |
30 | 48 |
|
31 | 49 | - name: Run tests |
| 50 | + timeout-minutes: 10 |
32 | 51 | run: bundle exec rake test |
0 commit comments