Update Changes for 2.115 #291
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: Linux build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: '01 01 * * 6' # Run every Saturday | |
| jobs: | |
| list: | |
| name: list available perl versions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: shogo82148/actions-setup-perl@v1 | |
| - id: set-matrix | |
| name: list available perl versions | |
| shell: perl {0} | |
| run: | | |
| use Actions::Core; | |
| print "Version available\n"; | |
| my @versions = perl_versions(); | |
| for my $v (@versions) { | |
| print "\t$v\n"; | |
| } | |
| # Don't want anything less then 5.8 | |
| @versions = grep { ! /^5\.6\.*/ } @versions; | |
| set_output(matrix => {perl => [@versions]}); | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| run: | |
| runs-on: ubuntu-latest | |
| needs: list | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{fromJson(needs.list.outputs.matrix)}} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: ${{ matrix.perl }} | |
| - name: Perl version | |
| run: perl -V | |
| - name: Install dependencies | |
| run: cpanm --quiet --installdeps --notest . | |
| - name: Build | |
| run: perl Makefile.PL && make | |
| - name: Test | |
| run: make test |