Dev #1075
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rice CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| mkmf: | |
| name: mkmf (${{ matrix.os }}, ${{ matrix.ruby }}, C++17) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-2025] | |
| ruby: ['3.2', '3.3', '3.4', '4.0'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Configure | |
| run: rake headers | |
| - name: Build and test | |
| run: rake test | |
| - name: Mkmf.log | |
| uses: actions/upload-artifact@v6 | |
| if: always() | |
| with: | |
| name: mkmf-${{ matrix.os }}-${{ matrix.version }}-${{ matrix.ruby }} | |
| path: test/mkmf.log | |
| cmake: | |
| name: cmake (${{ matrix.os }}, 4.0, C++${{ matrix.cpp_standard }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-2025] | |
| cpp_standard: ['17', '20', '23'] | |
| include: | |
| - os: ubuntu-latest | |
| preset: linux-debug | |
| - os: macos-latest | |
| preset: macos-debug | |
| - os: windows-2025 | |
| preset: msvc-debug | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '4.0' | |
| - name: Install libffi (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get install -y libffi-dev | |
| - name: Install libffi (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install libffi | |
| - name: Install libffi (Windows) | |
| if: runner.os == 'Windows' | |
| run: vcpkg install libffi:x64-windows | |
| - name: Set up MSVC | |
| if: runner.os == 'Windows' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Configure | |
| run: cmake --preset ${{ matrix.preset }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_standard }} | |
| - name: Build | |
| run: cmake --build --preset ${{ matrix.preset }} | |
| - name: Test | |
| run: ./build/${{ matrix.preset }}/test/unittest | |
| shell: bash |