-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.34 KB
/
linux.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: linux
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
env:
PERL_MOD_DIR: /home/runner/perl5/lib/perl5
jobs:
perl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.36'
- name: perl -V
run: perl -V
- name: Prepare for cache
run: |
perl -V > perlversion.txt
echo '20220918' >> perlversion.txt
ls -l perlversion.txt
- name: Cache CPAN modules
uses: actions/cache@v3
with:
path: ~/perl5
key: ${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }}
restore-keys: |
${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }}
- name: Install Dynamic Dependencies
run: |
which -a cpanm
which -a perl
cpanm --notest local::lib
echo $(perl -Mlocal::lib=${HOME}/perl5)
eval "$(perl -Mlocal::lib=${HOME}/perl5)"
cpanm --notest Alien::Build
cpanm --installdeps .
- name: Run Tests
run: |
echo $(perl -Mlocal::lib=${HOME}/perl5)
eval "$(perl -Mlocal::lib=${HOME}/perl5)"
perl Makefile.PL
cpanm --installdeps .
make
make test