-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.37 KB
/
windows.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
name: Windows
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
env:
PERL5LIB: c:\cx\lib\perl5
PERL_LOCAL_LIB_ROOT: c:/cx
PERL_MB_OPT: --install_base C:/cx
PERL_MM_OPT: INSTALL_BASE=C:/cx
ALIEN_BUILD_PRELOAD: Fetch::Cache
AUTOMATED_TESTING: 1
jobs:
perl:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Perl
run: |
choco install strawberryperl
echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
##echo $env:PATH
- name: perl -V
run: perl -V
- name: Prepare for CPAN cache
run: |
perl -V > perlversion.txt
echo "20201120" >> perlversion.txt
dir perlversion.txt
- name: Cache CPAN modules
uses: actions/cache@v3
with:
path: c:\cx
key: ${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }}
restore-keys: |
${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }}
- name: Install task deps
run: |
cpanm --notest --no-man-pages PDL
cpanm --notest --installdeps .
cpanm --installdeps .
# Runs a set of commands using the runners shell
- name: Run tests
run: |
prove -l t