-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 1.22 KB
/
other-perls.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Perl CI with Inline::C and OpenMP
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Ensures that one failing job does not cancel others
matrix:
os: ["ubuntu-latest","ubuntu-22.04"]
perl: ["5.40","5.38","5.36","5.34","5.32","5.30","5.28","5.26","5.24","5.22","5.20","5.18","5.16","5.14","5.12","5.10"]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
- run: perl -v
- name: Install Required Perl Modules
run: |
cpanm --verbose --notest Module::Build Inline::C Alien::OpenMP \
Util::H2O::More File::Temp Test::Exception \
OpenMP::Environment File::ShareDir
# Conditionally install Test::Deep if Perl version >= 5.12
perl -e 'exit 1 if $] < 5.012' && cpanm --verbose --notest Test::Deep || echo "Skipping Test::Deep for Perl < 5.12"
- name: Run Tests
run: ./test-runner.sh
if: always() # Ensures tests run even if a previous step failed