Skip to content

Commit

Permalink
Update workflows to use EXTRA_CPAN_MODULES
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Nov 26, 2024
1 parent de8e147 commit a87cc9e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
# but that's not a big deal.
- name: Install dependencies
run: |
cpanm --notest --installdeps --with-suggests --with-recommends .
cpanm --notest --installdeps --with-suggests --with-recommends . ${{ vars.EXTRA_CPAN_MODULES }}
- name: Show cpanm failures
if: ${{ failure() }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
# but that's not a big deal.
- name: Install dependencies
run: |
cpan -M https://www.cpan.org -T .
cpan -M https://www.cpan.org -T . ${{ vars.EXTRA_CPAN_MODULES }}
- name: Run tests
run: |
perl Makefile.PL
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# brian's standard GitHub Actions release config for Perl 5 modules
# version 20240825.001
# version 20241118.001
# https://github.com/briandfoy/github_workflows
# https://github.com/features/actions
# This file is licensed under the Artistic License 2.0
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
# but that's not a big deal.
- name: Install dependencies
run: |
cpanm --notest --installdeps --with-suggests --with-recommends .
cpanm --notest --installdeps --with-suggests --with-recommends . ${{ vars.EXTRA_CPAN_MODULES }}
# This makes the distribution and tests it, but assumes by the time we
# got here, everything else was already tested.
- name: Create distro
Expand All @@ -94,7 +94,7 @@ jobs:
id: version
- name: Changes extract
run: |
perl -00 -lne 'next unless /\A\d+\.\d+(_\d+)?/; print s/^\h+([*-])/$1/grm; last' Changes > Changes-latest
perl -00 -lne 'next unless /\A\d+\.\d+(_\d+)?/; s/^\h+([*-])/$1/gm; s/^-/ -/gm; print; last' Changes > Changes-latest
cat Changes-latest
id: extract
# https://cli.github.com/manual/gh_attestation_verify
Expand All @@ -106,16 +106,16 @@ jobs:
id: attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ env.ASSET_NAME }}
subject-path: ${{ env.ASSET_NAME }}
- name: upload
uses: softprops/action-gh-release@v1
with:
body_path: Changes-latest
draft: false
prerelease: false
name: ${{ steps.version.outputs.name }}
files: |
${{ env.ASSET_NAME }}
${{ steps.attestation.outputs.bundle-path }}
${{ vars.EXTRA_RELEASE_PATHS }}
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
body_path: Changes-latest
draft: false
prerelease: false
name: ${{ steps.version.outputs.name }}
files: |
${{ env.ASSET_NAME }}
${{ steps.attestation.outputs.bundle-path }}
${{ vars.EXTRA_RELEASE_PATHS }}
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Install dependencies
run: |
cpan -M https://www.cpan.org -T .
cpan -M https://www.cpan.org -T Test::Manifest
cpan -M https://www.cpan.org -T Test::Manifest ${{ vars.EXTRA_CPAN_MODULES }}
- name: Run tests
run: |
perl Makefile.PL
Expand Down

0 comments on commit a87cc9e

Please sign in to comment.