Skip to content

Commit

Permalink
GitHub Action: upload cpanm logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Jun 2, 2024
1 parent 3776ae0 commit 461243c
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/multiperl-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,31 @@ jobs:
chmod u+x /tmp/cpanm
- name: Install Dist::Zilla
run: sudo apt-get install -y libdist-zilla-perl
- name: Install prereqs
# This could probably be made more efficient by looking at what it's
# installing via cpanm that could, instead, be installed from apt. I
# may do that later, but for now, it's fine! -- rjbs, 2023-01-07
- name: Install authordeps
run: |
perl -MDist::Zilla::Plugin::CPANFile -e0
dzil authordeps --missing > /tmp/deps-phase-1.txt
echo "---BEGIN AUTHORDEPS---"
cat /tmp/deps-phase-1.txt
echo "---END AUTHORDEPS---"
/tmp/cpanm --notest -S < /tmp/deps-phase-1.txt
dzil listdeps --author --missing >> /tmp/deps-phase-2.txt
- name: Upload cpanm logs for authordeps
uses: actions/upload-artifact@v4
with:
name: cpanm-authordeps.log
path: ~/.cpanm/build.log
- name: Install missing prereqs
run: |
dzil listdeps --author --missing > /tmp/deps-phase-2.txt
echo "---BEGIN PREREQS---"
cat /tmp/deps-phase-2.txt
echo "---END PREREQS---"
/tmp/cpanm --notest -S < /tmp/deps-phase-2.txt
- name: Upload cpanm logs for prereqs
uses: actions/upload-artifact@v4
with:
name: cpanm-prereqs.log
path: ~/.cpanm/build.log
- name: Build tarball
run: |
dzil build --in Dist-To-Test
Expand Down

0 comments on commit 461243c

Please sign in to comment.