Skip to content

Commit

Permalink
Add perl 5.40 to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Jun 16, 2024
1 parent 6534f16 commit f7d1764
Show file tree
Hide file tree
Showing 9 changed files with 169 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -84,7 +84,7 @@ jobs:
with:
# NOTE: path doesn't expand variables!
path: upstream-zlib-install
key: ${{ runner.os }}-zlib-ng-${{ matrix.zlib-version }}-${{ matrix.zlib-native }}
key: ${{ runner.os }}-${{ runner.arch }}-zlib-ng-${{ matrix.zlib-version }}-${{ matrix.zlib-native }}

- name: Wipe develop cached files, if found
if: env.STEP_ENABLED && matrix.zlib-version == 'develop' && steps.cache-zlib.outputs.cache-hit
Expand Down
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -82,7 +82,7 @@ jobs:
with:
# NOTE: path doesn't expand variables!
path: upstream-zlib-install
key: ${{ runner.os }}-zlib-${{ matrix.zlib-version }}
key: ${{ runner.os }}-${{ runner.arch }}-zlib-${{ matrix.zlib-version }}

- name: Wipe develop cached files, if found
if: env.STEP_ENABLED && matrix.zlib-version == 'develop' && steps.cache-zlib.outputs.cache-hit
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
6 changes: 3 additions & 3 deletions .github/workflows/macos-upstream-zlib-ng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
strategy:
matrix:
perl:
- '5.38'
- latest
zlib-version:
- 'develop'
- '2.1.6'
- '2.1.5'
- '2.1.4'
- '2.1.3'
# - '2.1.3'
- '2.1.2'
- '2.0.7'
- '2.0.6'
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
with:
# NOTE: path doesn't expand variables!
path: upstream-zlib-install
key: ${{ runner.os }}-zlib-ng-${{ matrix.zlib-version }}-${{ matrix.zlib-native }}
key: ${{ runner.os }}-${{ runner.arch }}-zlib-ng-${{ matrix.zlib-version }}-${{ matrix.zlib-native }}

- name: Wipe develop cached files, if found
if: env.STEP_ENABLED && matrix.zlib-version == 'develop' && steps.cache-zlib.outputs.cache-hit
Expand Down
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -82,7 +82,7 @@ jobs:
with:
# NOTE: path doesn't expand variables!
path: upstream-zlib-install
key: ${{ runner.os }}-zlib-${{ matrix.zlib-version }}
key: ${{ runner.os }}-${{runner.arch}}-zlib-${{ matrix.zlib-version }}

- name: Wipe develop cached files, if found
if: env.STEP_ENABLED && matrix.zlib-version == 'develop' && steps.cache-zlib.outputs.cache-hit
Expand Down
53 changes: 53 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,69 @@ 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:
- name: clang
werror: -Werror

- name: clang++
werror: -Werror -Wno-error=deprecated

build-zlib:
- 0
- 1

name: Perl ${{ matrix.perl }} BUILD_ZLIB:${{matrix.build-zlib}} ${{matrix.compiler.name}}
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.compiler.werror}} " CC=${{matrix.compiler.name}} && make
env:
BUILD_ZLIB: ${{matrix.build-zlib}}

- name: Test
run: make test
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -89,7 +89,7 @@ jobs:
with:
# NOTE: path doesn't expand variables!
path: upstream-zlib-install
key: ${{ runner.os }}-zlib-ng-${{ matrix.zlib-version }}-${{ matrix.zlib-native }}
key: ${{ runner.os }}-${{ runner.arch }}-zlib-ng-${{ matrix.zlib-version }}-${{ matrix.zlib-native }}

- name: Wipe develop cached files, if found
if: env.STEP_ENABLED && matrix.zlib-version == 'develop' && steps.cache-zlib.outputs.cache-hit
Expand Down
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -58,7 +58,7 @@ jobs:
with:
# NOTE: path doesn't expand variables!
path: upstream-zlib-install
key: ${{ runner.os }}-zlib-${{ matrix.zlib-version }}
key: ${{ runner.os }}-${{ runner.arch }}-zlib-${{ matrix.zlib-version }}

# - name: Cancel if Scheduled Job and not running the 'develop' branch
# if: github.event_name == 'schedule' && matrix.zlib-version != 'develop'
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 f7d1764

Please sign in to comment.