Skip to content

Commit

Permalink
Revert "Try to sort out problems with GitHub CI."
Browse files Browse the repository at this point in the history
This reverts commit 78aee39.
  • Loading branch information
trwyant committed Jan 31, 2024
1 parent c6c7933 commit 02f82c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,34 +84,12 @@ jobs:
cpanm File::HomeDir Getopt::Long version
perl .github/workflows/environment.PL
# The following two steps were inserted in an attempt tp figure out
# why MacOS could not install File::HomeDir. They can be removed once
# this is sorted out.

# 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: 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_MAKER=${{ env.MY_MAKER }}
echo MY_WANT_POD_MAN=${{ env.MY_WANT_POD_MAN }}
# Non-core toolchain Module::Build needs Pod::Man, which is in
Expand All @@ -133,8 +111,8 @@ jobs:
- name: Run ExtUtils::MakeMaker tests
run: |
perl Makefile.PL
${{ MY_MAKER }}
${{ MY_MAKER }} test
make
make test
- name: Run Module::Build tests
run: |
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/environment.PL
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use 5.006002;
use strict;
use warnings;

use Config;
use File::HomeDir;
use Getopt::Long;
use version;
Expand Down Expand Up @@ -52,17 +51,11 @@ sub compute_environment {
MY_IS_UNIX => $is_unix,
MY_IS_WINDOWS => $is_windows,
MY_WANT_POD_MAN => want_pod_man(),
MY_MAKER => $Config{make}
);

$is_windows
and @env{ qw{ LINES COLUMNS } } = ( 24, 80 );

print <<"EOD";
home=$ENV{HOME}
make=$Config{make}
EOD

return \%env;
}

Expand Down

0 comments on commit 02f82c4

Please sign in to comment.