Bump & fix Windows CI #89
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: Test | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| # All supported Perl versions except latest. | |
| perl: [ | |
| '5.12', '5.14', '5.16', '5.18', '5.20', '5.22', '5.24', '5.26', | |
| '5.28', '5.30', '5.32', '5.34', '5.36', '5.38', | |
| ] | |
| # Variants of the latest Perl. | |
| include: | |
| - no-memcached: true | |
| os: macos-latest | |
| perl: '5.40' | |
| - no-memcached: true | |
| os: windows-2022 | |
| perl: '5.40' | |
| - no-memcached: true | |
| os: windows-2025 | |
| perl: '5.40' | |
| - name: ' (no memcached)' | |
| no-memcached: true | |
| os: ubuntu-latest | |
| perl: '5.40' | |
| # This is effectively our normal one, author with ithreads. | |
| - name: ' (author, ithread)' | |
| author: true | |
| ithread: true | |
| os: ubuntu-latest | |
| perl: '5.40' | |
| # Windows 2025 isn't working yet, I think Perl 5.42 might fix things: | |
| # library and perl binaries are mismatched (got first handshake key xxx, needed yyy) | |
| continue-on-error: ${{ matrix.os == 'windows-2025' }} | |
| runs-on: ${{ matrix.os }} | |
| name: v${{ matrix.perl }} on ${{ matrix.os }}${{ matrix.name }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - if: ${{ !matrix.no-memcached }} | |
| uses: niden/actions-memcached@v7 | |
| - uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| multi-thread: ${{ matrix.ithread }} | |
| perl-version: ${{ matrix.perl }} | |
| - run: perl -v | |
| - if: ${{ !matrix.author }} | |
| run: cpanm --installdeps --notest . | |
| - if: ${{ matrix.author }} | |
| run: cpanm --installdeps --notest --with-develop . | |
| - run: perl Makefile.PL | |
| - if: ${{ !matrix.author }} | |
| run: make test | |
| - if: ${{ matrix.author }} | |
| env: | |
| AUTHOR_TESTING: 1 | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: cover -ignore_re '\.h$' -report Coveralls -test |