From 4004a8e50218eeeaceaa71474355c3ab31a64c39 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Wed, 12 Oct 2022 10:49:57 +1100 Subject: CI/dist-modules: add job to test dist/ modules on macos system perl This tests two things for us: - it tests on a "strange" platform, where things aren't exactly POSIX, but similar enough for some purposes. This allows testing for https://github.com/Perl/perl5/issues/20362 - the MacOS system perl is threaded, which is a flaw with the existing dist-modules tests. This found a few problems which are fixed in the following commits. --- .github/workflows/testsuite.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to '.github') diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 15fddf7ebc..cc23e6cd0e 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -807,3 +807,29 @@ jobs: - name: Build and test dist modules run: perl Porting/test-dist-modules.pl -continue + + dist-modules-sys-macos: + name: "Test dist/ modules on MacOS system perl" + needs: sanity_check + runs-on: macos-11 + if: (! cancelled() && (needs.sanity_check.outputs.run_all_jobs == 'true' || needs.sanity_check.outputs.ci_force_dist_modules == 'true')) + + env: + # some plugins still needs this to run their tests... + # these don't really matter, but might later + PERL_USE_UNSAFE_INC: 0 + AUTHOR_TESTING: 1 + AUTOMATED_TESTING: 1 + RELEASE_TESTING: 1 + + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v2 + - name: perl -V + run: /usr/bin/perl -V + - name: Build and test dist modules + run: + /usr/bin/perl Porting/test-dist-modules.pl -continue -separate + -- cgit v1.2.1