Skip to content

Commit

Permalink
updates for perl 5.40
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Jun 16, 2024
1 parent 3798a82 commit c26eb74
Show file tree
Hide file tree
Showing 9 changed files with 159 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-upstream-zlib-ng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
perl:
- '5.38'
- latest
zlib-version:
- 'develop'
- '2.1.6'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-upstream-zlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
perl:
- '5.38'
- latest
zlib-version:
- v1.3.1
- v1.3
Expand Down
59 changes: 55 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
strategy:
matrix:
perl:
- '5.40'
- '5.38'
- '5.36'
- '5.34'
Expand All @@ -36,24 +37,74 @@ jobs:
- 1

cc-opts:
- ""
- -Wc++-compat
- -Werror
- -Werror -Wc++-compat

name: Perl ${{ matrix.perl }} BUILD_ZLIB:${{matrix.build-zlib}} ${{matrix.cc-opts}}
steps:
- uses: actions/checkout@v4

- 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: |
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
perl Makefile.PL CCFLAGS="$flags ${{matrix.cc-opts}}" && make
env:
BUILD_ZLIB: ${{matrix.build-zlib}}

- name: Test
run: make test



werror:

runs-on: ubuntu-latest

strategy:
matrix:
perl:
- latest

compiler:
- gcc
- g++

build-zlib:
- 0
- 1

name: Perl ${{ matrix.perl }} BUILD_ZLIB:${{matrix.build-zlib}} ${{matrix.compiler}}
steps:
- uses: actions/checkout@v4

- 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
run: |
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
perl Makefile.PL CCFLAGS="$flags -Werror" CC=${{matrix.compiler}} && make
env:
BUILD_ZLIB: ${{matrix.build-zlib}}
PERL_MM_OPT: CCFLAGS=-Werror ${{matrix.cc-opts}}

- name: Test
run: make test
2 changes: 1 addition & 1 deletion .github/workflows/macos-upstream-zlib-ng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
perl:
- '5.38'
- latest
zlib-version:
- 'develop'
- '2.1.6'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-upstream-zlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
perl:
- '5.38'
- latest
zlib-version:
- v1.3.1
- v1.3
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
strategy:
matrix:
perl:
- '5.40'
- '5.38'
- '5.36'
- '5.34'
Expand All @@ -37,17 +38,66 @@ jobs:
name: Perl ${{ matrix.perl }} BUILD_ZLIB:${{matrix.build-zlib}}
steps:
- uses: actions/checkout@v4

- 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
env:
BUILD_ZLIB: ${{matrix.build-zlib}}

- name: Test
run: make test



werror:

runs-on: ubuntu-latest

strategy:
matrix:
perl:
- latest

compiler:
- clan
- clang++

build-zlib:
- 0
- 1

name: Perl ${{ matrix.perl }} BUILD_ZLIB:${{matrix.build-zlib}} ${{matrix.compiler}}
steps:
- uses: actions/checkout@v4

- 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: |
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
perl Makefile.PL CCFLAGS="$flags -Werror" CC=${{matrix.compiler}} && make
env:
BUILD_ZLIB: ${{matrix.build-zlib}}

- name: Test
run: make test
2 changes: 1 addition & 1 deletion .github/workflows/windows-upstream-zlib-ng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
perl:
- '5.38'
- latest
zlib-version:
- 'develop'
- '2.1.6'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-upstream-zlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
perl:
- '5.38'
- latest
zlib-version:
- v1.2.13
- v1.2.12
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
strategy:
matrix:
perl:
- '5.40'
- '5.38'
- '5.36'
- '5.34'
Expand Down Expand Up @@ -40,18 +41,65 @@ jobs:
name: Perl ${{ matrix.perl }} distribution:${{ matrix.distribution }} BUILD_ZLIB:${{matrix.build-zlib}}
steps:
- uses: actions/checkout@v4

- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
distribution: ${{ matrix.distribution }}

- name: Perl version
run: perl -V

- name: Install dependencies
run: cpanm --quiet --installdeps --notest .

- name: Build
run: perl Makefile.PL && make
env:
BUILD_ZLIB: ${{matrix.build-zlib}}

- name: Test
run: make test

werror:

runs-on: ubuntu-latest

strategy:
matrix:
perl:
- latest

compiler:
- gcc
- g++

build-zlib:
- 0
- 1

name: Perl ${{ matrix.perl }} BUILD_ZLIB:${{matrix.build-zlib}} ${{matrix.compiler}}
steps:
- uses: actions/checkout@v4

- 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: |
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
perl Makefile.PL CCFLAGS="$flags -Werror" CC=${{matrix.compiler}} && make
env:
BUILD_ZLIB: ${{matrix.build-zlib}}

- name: Test
run: make test}

0 comments on commit c26eb74

Please sign in to comment.