Skip to content

Commit

Permalink
Merge branch 'main' into releases/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Sep 4, 2024
2 parents 22eec20 + e5212a1 commit e1d253f
Show file tree
Hide file tree
Showing 18 changed files with 4,316 additions and 662 deletions.
2 changes: 1 addition & 1 deletion .github/build-openssl-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

set -e

OPENSSL_VERSION=3.3.1
OPENSSL_VERSION=3.3.2
ROOT=$(cd "$(dirname "$0")" && pwd)
: "${RUNNER_TEMP:=$ROOT/working}"
: "${RUNNER_TOOL_CACHE:=$RUNNER_TEMP/dist}"
Expand Down
2 changes: 1 addition & 1 deletion .github/build-openssl-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

set -e

OPENSSL_VERSION=3.3.1
OPENSSL_VERSION=3.3.2
ROOT=$(cd "$(dirname "$0")" && pwd)
: "${RUNNER_TEMP:=$ROOT/working}"
: "${RUNNER_TOOL_CACHE:=$RUNNER_TEMP/dist}"
Expand Down
2 changes: 1 addition & 1 deletion .github/build-openssl-win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

set -e

OPENSSL_VERSION=3.3.1
OPENSSL_VERSION=3.3.2
ROOT=$(cd "$(dirname "$0")" && pwd)
: "${RUNNER_TEMP:=$ROOT/working}"
: "${RUNNER_TOOL_CACHE:=$RUNNER_TEMP/dist}"
Expand Down
64 changes: 33 additions & 31 deletions .github/workflows/test-cpan-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CPAN installer
on:
pull_request:
paths:
- ".github/workflows/test-cpan-installer.yml"
- "bin/cpanm"
- "bin/cpm"
- "bin/carton"
Expand Down Expand Up @@ -30,49 +31,50 @@ jobs:
- cpm
- carton
perl:
- "5" # latest version of Perl 5

# TODO: fix cpm
# - "5.8.1" # oldest version the original cpanm supports
# TODO: @shogo82148 fix me
# building ExtUtils::MakeMaker fails.
# - "5.8.0"
# TODO: fix cpm
# - "5.6.2"
# - "5.6.1" # oldest version the action supports
# too old to work cpanm... I gave up.
# - "5.6.0"
- "5.40" # latest version of Perl 5
- "5.8"
distribution:
- "default"
include:
- perl: "5.40"
os: "windows-latest"
installer: "cpanm"
distribution: "strawberry"
- perl: "5.40"
os: "windows-latest"
installer: "cpm"
distribution: "strawberry"
- perl: "5.40"
os: "windows-latest"
installer: "carton"
distribution: "strawberry"
- perl: "5.8"
os: "windows-latest"
installer: "cpanm"
distribution: "strawberry"
- perl: "5.8"
os: "windows-latest"
installer: "cpm"
distribution: "strawberry"
- perl: "5.8"
os: "windows-latest"
installer: "carton"
distribution: "strawberry"
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: npm

- run: npm ci
- run: npm run build
- run: npm run package

- name: use the action
uses: ./
with:
perl-version: "${{ matrix.perl }}"
install-modules-with: "${{ matrix.installer }}"
install-modules: |
ExtUtils::MakeMaker
install-modules-args: "--notest"
working-directory: __test__/p5-Test-Module
- name: print the version of App::p and use it
- name: print the version of Acme::this
run: |
# shellcheck disable=SC2016
perl -MApp::p -e 'print "$App::p::VERSION\n"'
p 'print "Hello World\n"'
- name: print the version of ExtUtils::MakeMaker
run: |
perl -MExtUtils::MakeMaker -e 'print $ExtUtils::MakeMaker::VERSION'
perl -MAcme::this -e 'print "$Acme::this::VERSION\n"'
- run: ${{ matrix.installer }} --help
- run: ${{ matrix.installer }} --version
2 changes: 1 addition & 1 deletion __test__/p5-Test-Module/cpanfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
requires 'App::p';
requires 'Acme::this';
Loading

0 comments on commit e1d253f

Please sign in to comment.