-
Notifications
You must be signed in to change notification settings - Fork 4
92 lines (72 loc) · 2.47 KB
/
ci-quick.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# FIXME! How can we avoid DRY here? The only difference is that we want to
# include more Perl versions.
name: CI for Pushes
on:
push:
branches: [ '*' ]
jobs:
on-push:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
perl-version:
- '5.38'
steps:
- name: 'Check out repository'
uses: actions/checkout@v3
with:
submodules: recursive
- name: 'Perl version'
run: perl -V
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
distribution: strawberry
- name: 'Install Linux::Inotify2'
if: matrix.os == 'ubuntu-latest'
run: cpanm --notest Linux::Inotify2
- name: 'Install Mac::FSEvents'
if: matrix.os == 'macos-latest'
run: cpanm --notest Mac::FSEvents
- name: 'Install Filesys::Notify::Win32::ReadDirectoryChanges'
if: matrix.os == 'windows-latest'
run: cpanm --notest 'Filesys::Notify::Win32::ReadDirectoryChanges'
- name: 'Install IO::KQueue'
if: matrix.os == 'macos-latest'
run: cpanm --notest IO::KQueue
- name: 'Install BSD::Resource'
if: matrix.os == 'macos-latest'
run: cpanm --notest BSD::Resource
- name: 'AnyEvent::Filesys::Watcher'
run: |
git clone https://github.com/gflohr/AnyEvent-Filesys-Watcher &&
cd AnyEvent-Filesys-Watcher &&
cpanm --notest --verbose . &&
cd .. &&
perl -MFile::Path -e "exit not File::Path::rmtree('AnyEvent-Filesys-Watcher')"
- name: 'Install JavaScript::Duktape::XS'
run: |
git clone https://github.com/gonzus/JavaScript-Duktape-XS &&
cd JavaScript-Duktape-XS &&
cpanm --notest --verbose . &&
cd .. &&
perl -MFile::Path -e "exit not File::Path::rmtree('JavaScript-Duktape-XS')"
- name: 'Install Text::Markdown::Discount for MS-DOS'
if: matrix.os == 'windows-latest'
run: |
git clone https://github.com/gflohr/text-markdown-discount &&
cd text-markdown-discount &&
cpanm --notest --verbose . &&
cd .. &&
perl -MFile::Path -e "exit not File::Path::rmtree('text-markdown-discount')"
- name: 'Install other dependencies'
run: cpanm --notest --installdeps --verbose .
- name: 'Prepare build'
run: perl Makefile.PL
- name: 'Build'
run: make
- name: 'Test'
run: prove -lmbv