Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji committed Apr 28, 2024
1 parent 26a0557 commit 80923c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,26 @@ jobs:
run: perl -V
- name: Install Dependencies
run: curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --with-develop --with-recommends --show-build-log-on-failure
if: matrix.perl-version != '5.8-buster'
- name: Install Dependencies
run: curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --with-develop --with-recommends --show-build-log-on-failure --resolver Fixed,CPAN::Meta::Requirements@2.140,Module::Build::Tiny@0.047
if: matrix.perl-version == '5.8-buster'
- name: Run Tests
run: prove -lr --timer t xt

macos:
name: macos ${{ matrix.perl }}
runs-on: macos-latest
env:
OBJC_DISABLE_INITIALIZE_FORK_SAFETY: 'YES'
strategy:
matrix:
include:
- perl: /usr/bin/perl
prove: /usr/bin/prove
cpm-option: --sudo
- perl: /usr/local/bin/perl
prove: /usr/local/bin/prove
- perl: /opt/homebrew/bin/perl
prove: /opt/homebrew/bin/prove
cpm-option: ''
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion xt/lib/CLI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ sub cpm_install {
my $local = $_LOCAL || tempdir DIR => $TEMPDIR;
my $home = $_HOME || tempdir DIR => $TEMPDIR;
if ($] < 5.010) {
unshift @argv, "--resolver", 'Fixed,CPAN::Meta::Requirements@2.140';
unshift @argv, "--resolver",
'Fixed,CPAN::Meta::Requirements@2.140,Module::Build::Tiny@0.047';
}
my ($out, $err, $exit) = capture {
local %ENV = %ENV;
Expand Down

0 comments on commit 80923c4

Please sign in to comment.