From 6d8bc371bc82f832b0da9652ff98f45fd0b14f8a Mon Sep 17 00:00:00 2001
From: Ricardo Signes <rjbs@semiotic.systems>
Date: Sun, 2 Jun 2024 20:51:52 -0400
Subject: [PATCH] cpm workflow

---
 .github/workflows/multiperl-test.yml | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/multiperl-test.yml b/.github/workflows/multiperl-test.yml
index 5748f427d..d90a0d383 100644
--- a/.github/workflows/multiperl-test.yml
+++ b/.github/workflows/multiperl-test.yml
@@ -22,6 +22,9 @@ jobs:
         run: |
           curl https://cpanmin.us/ > /tmp/cpanm
           chmod u+x /tmp/cpanm
+      - name: Install cpm
+        run: |
+          /tmp/cpanm --notest -S App::cpm
       - name: Install Dist::Zilla
         run: sudo apt-get install -y libdist-zilla-perl
       - name: Install authordeps
@@ -30,24 +33,14 @@ jobs:
           echo "---BEGIN AUTHORDEPS---"
           cat /tmp/deps-phase-1.txt
           echo "---END AUTHORDEPS---"
-          /tmp/cpanm --notest -S < /tmp/deps-phase-1.txt
-      - name: Upload cpanm logs for authordeps
-        uses: actions/upload-artifact@v4
-        with:
-          name: cpanm-authordeps.log
-          path: ~/.cpanm/build.log
+          sudo cpm install -g - < /tmp/deps-phase-1.txt
       - 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
+          sudo cpm install -g - < /tmp/deps-phase-2.txt
       - name: Build tarball
         run: |
           dzil build --in Dist-To-Test