From 80923c41145a0ceb87c8e0bf409a7fe1a9b6ab9b Mon Sep 17 00:00:00 2001 From: Shoichi Kaji Date: Mon, 29 Apr 2024 00:52:59 +0900 Subject: [PATCH] update github actions --- .github/workflows/test.yml | 10 ++++++++-- xt/lib/CLI.pm | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 81feb0e..cc96155 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/xt/lib/CLI.pm b/xt/lib/CLI.pm index 48b1e2c..c6467d6 100644 --- a/xt/lib/CLI.pm +++ b/xt/lib/CLI.pm @@ -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;