Skip to content

Commit b34415a

Browse files
committed
github: that didn't work; try $GITHUB_ENV instead
1 parent 9ca8194 commit b34415a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ jobs:
2626
env:
2727
cachepan: cachepan
2828
locallib: xlocal
29-
PERL5LIB: ${{ github.workspace }}/xlocal/lib/perl5
3029

3130
steps:
3231
- uses: actions/checkout@v3
3332
- name: "Set up perl"
3433
uses: shogo82148/actions-setup-perl@v1
3534
with:
3635
perl-version: ${{ matrix.perl-version }}
37-
enable-modules-cache: false
3836
- name: "Create perl fingerprint file"
3937
run: perl -MConfig -wE 'say for sprintf("%vd", $^V), Config::bincompat_options' > perl-fingerprint
4038
- name: "Cache CPAN fragments"
@@ -50,6 +48,8 @@ jobs:
5048
with:
5149
path: ${{ env.locallib }}
5250
key: xlocal-lib-${{ matrix.os }}-${{ hashFiles('perl-fingerprint', 'Makefile_PL_settings*.plx') }}
51+
- name: "Activate local lib directory"
52+
run: echo 'PERL5LIB=${{ github.workspace }}/${{ env.locallib }}/lib/perl5' >> $GITHUB_ENV
5353
- run: cpanm --mirror "file://${{ github.workspace }}/${{ env.cachepan }}" --mirror https://www.cpan.org/ --save-dist "${{ github.workspace }}/${{ env.cachepan }}" -l "${{ env.locallib }}" --notest ExtUtils::MakeMaker
5454
- run: cpanm --mirror "file://${{ github.workspace }}/${{ env.cachepan }}" --mirror https://www.cpan.org/ --save-dist "${{ github.workspace }}/${{ env.cachepan }}" -l "${{ env.locallib }}" --notest --installdeps --with-develop .
5555
- run: perl Makefile.PL

.github/workflows/run-tests.yml.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ jobs:
2626
env:
2727
cachepan: cachepan
2828
locallib: xlocal
29-
PERL5LIB: ${{ github.workspace }}/xlocal/lib/perl5
3029

3130
steps:
3231
- uses: actions/checkout@v3
3332
- name: "Set up perl"
3433
uses: shogo82148/actions-setup-perl@v1
3534
with:
3635
perl-version: ${{ matrix.perl-version }}
37-
enable-modules-cache: false
3836
- name: "Create perl fingerprint file"
3937
run: perl -MConfig -wE 'say for sprintf("%vd", $^V), Config::bincompat_options' > perl-fingerprint
4038
- name: "Cache CPAN fragments"
@@ -50,6 +48,8 @@ jobs:
5048
with:
5149
path: ${{ env.locallib }}
5250
key: xlocal-lib-${{ matrix.os }}-${{ hashFiles('perl-fingerprint', 'Makefile_PL_settings*.plx') }}
51+
- name: "Activate local lib directory"
52+
run: echo 'PERL5LIB=${{ github.workspace }}/${{ env.locallib }}/lib/perl5' >> $GITHUB_ENV
5353
- run: cpanm --mirror "file://${{ github.workspace }}/${{ env.cachepan }}" --mirror https://www.cpan.org/ --save-dist "${{ github.workspace }}/${{ env.cachepan }}" -l "${{ env.locallib }}" --notest ExtUtils::MakeMaker
5454
- run: cpanm --mirror "file://${{ github.workspace }}/${{ env.cachepan }}" --mirror https://www.cpan.org/ --save-dist "${{ github.workspace }}/${{ env.cachepan }}" -l "${{ env.locallib }}" --notest --installdeps --with-develop .
5555
- run: perl Makefile.PL

0 commit comments

Comments
 (0)