Skip to content

Commit

Permalink
Upgrade my GitHub CI stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
trwyant committed Aug 21, 2024
1 parent 2ec99ed commit 4450454
Show file tree
Hide file tree
Showing 4 changed files with 293 additions and 265 deletions.
38 changes: 7 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,57 +90,33 @@ jobs:
- name: Customize environment
run: |
perl .github/workflows/environment.PL
perl .github/workflows/tools environment
- name: Display local envoronment variables
run: |
echo MY_HOME=${{ env.MY_HOME }}
echo MY_IS_GITHUB_ACTION=${{ env.MY_IS_GITHUB_ACTION }}
echo MY_IS_UNIX=${{ env.MY_IS_UNIX }}
echo MY_IS_WINDOWS=${{ env.MY_IS_WINDOWS }}
echo MY_WANT_POD_MAN=${{ env.MY_WANT_POD_MAN }}
# Non-core toolchain Module::Build needs Pod::Man, which is in
# distro RRA/podlators. As of podlators-5.00 (2022-11-25) this
# requires Perl 5.10. As of Module::Build 0.4232 (2022-12-08)
# the dependency on Pod::Man has been dropped to deal with 5.8,
# presumably since it's a core module. But we need at least
# Pod::Man 2.16 to cope with t/manifypods_with_utf8.t, and
# Perl 5.10 only comes with 2.16. So ..
- name: Install old podlators distro if on old Perl
if: env.MY_WANT_POD_MAN
run: cpanm ${{ env.MY_WANT_POD_MAN }}
echo MY_TOOLS=${{ env.MY_TOOLS }}
- name: Install module dependencies
run: |
perl ${{ env.MY_TOOLS }} install_podlators
cpanm Module::Build
cpanm --with-configure --notest --installdeps .
- name: Run ExtUtils::MakeMaker tests
run: |
perl Makefile.PL
perl .github/workflows/make.PL
perl .github/workflows/make.PL test
perl ${{ env.MY_TOOLS }} --verbose make test
- name: Run Module::Build tests
run: |
perl Build.PL
./Build
./Build test
# The following technique from Gabor Szabo. Thanks:
# https://perlmaven.com/install-developer-dependencies-first-test-css
- name: Show cpanm install log under Unix
if: failure() && env.MY_IS_UNIX
run: cat $MY_HOME/.cpanm/work/*/build.log

- name: Show cpanm install log under Windows
if: failure() && env.MY_IS_WINDOWS
run: |
$dirs = Get-ChildItem "$env:MY_HOME\\.cpanm\\work\\"
foreach ( $d in $dirs ) {
$file = $d.FullName + "\\build.log"
echo ""
echo $file
type $file
}
- name: Show cpanm install log on failure
if: failure()
run: perl ${{ env.MY_TOOLS }} show_log
165 changes: 0 additions & 165 deletions .github/workflows/environment.PL

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/make.PL

This file was deleted.

Loading

0 comments on commit 4450454

Please sign in to comment.