From c26eb745b034ba8165dbabbbc374259f1d64178e Mon Sep 17 00:00:00 2001 From: pmqs Date: Sun, 16 Jun 2024 11:59:56 +0100 Subject: [PATCH] updates for perl 5.40 --- .github/workflows/linux-upstream-zlib-ng.yml | 2 +- .github/workflows/linux-upstream-zlib.yml | 2 +- .github/workflows/linux.yml | 59 +++++++++++++++++-- .github/workflows/macos-upstream-zlib-ng.yml | 2 +- .github/workflows/macos-upstream-zlib.yml | 2 +- .github/workflows/macos.yml | 50 ++++++++++++++++ .../workflows/windows-upstream-zlib-ng.yml | 2 +- .github/workflows/windows-upstream-zlib.yml | 2 +- .github/workflows/windows.yml | 48 +++++++++++++++ 9 files changed, 159 insertions(+), 10 deletions(-) diff --git a/.github/workflows/linux-upstream-zlib-ng.yml b/.github/workflows/linux-upstream-zlib-ng.yml index 1f1e799..7736f6d 100644 --- a/.github/workflows/linux-upstream-zlib-ng.yml +++ b/.github/workflows/linux-upstream-zlib-ng.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: perl: - - '5.38' + - latest zlib-version: - 'develop' - '2.1.6' diff --git a/.github/workflows/linux-upstream-zlib.yml b/.github/workflows/linux-upstream-zlib.yml index ccc98d4..6a40704 100644 --- a/.github/workflows/linux-upstream-zlib.yml +++ b/.github/workflows/linux-upstream-zlib.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: perl: - - '5.38' + - latest zlib-version: - v1.3.1 - v1.3 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index f5f0292..b915871 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -13,6 +13,7 @@ jobs: strategy: matrix: perl: + - '5.40' - '5.38' - '5.36' - '5.34' @@ -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 diff --git a/.github/workflows/macos-upstream-zlib-ng.yml b/.github/workflows/macos-upstream-zlib-ng.yml index 8a929ad..fe79d2b 100644 --- a/.github/workflows/macos-upstream-zlib-ng.yml +++ b/.github/workflows/macos-upstream-zlib-ng.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: perl: - - '5.38' + - latest zlib-version: - 'develop' - '2.1.6' diff --git a/.github/workflows/macos-upstream-zlib.yml b/.github/workflows/macos-upstream-zlib.yml index 5022c29..c16f731 100644 --- a/.github/workflows/macos-upstream-zlib.yml +++ b/.github/workflows/macos-upstream-zlib.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: perl: - - '5.38' + - latest zlib-version: - v1.3.1 - v1.3 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index dadd570..4459d71 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -13,6 +13,7 @@ jobs: strategy: matrix: perl: + - '5.40' - '5.38' - '5.36' - '5.34' @@ -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 diff --git a/.github/workflows/windows-upstream-zlib-ng.yml b/.github/workflows/windows-upstream-zlib-ng.yml index 06c6a28..0188162 100644 --- a/.github/workflows/windows-upstream-zlib-ng.yml +++ b/.github/workflows/windows-upstream-zlib-ng.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: perl: - - '5.38' + - latest zlib-version: - 'develop' - '2.1.6' diff --git a/.github/workflows/windows-upstream-zlib.yml b/.github/workflows/windows-upstream-zlib.yml index 6693ded..ffd9b7c 100644 --- a/.github/workflows/windows-upstream-zlib.yml +++ b/.github/workflows/windows-upstream-zlib.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: perl: - - '5.38' + - latest zlib-version: - v1.2.13 - v1.2.12 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b186ae1..50aac5a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -13,6 +13,7 @@ jobs: strategy: matrix: perl: + - '5.40' - '5.38' - '5.36' - '5.34' @@ -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}