-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (31 loc) · 950 Bytes
/
macos.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
name: macos
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
perl:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Set up Perl, Curl
run: |
brew install perl curl
- name: perl -V
run: perl -V
- name: Install build infrastructure
run: |
mkdir -p "$HOME/perl5/lib/perl5/local"
curl -sL https://raw.githubusercontent.com/Perl-Toolchain-Gang/local-lib/master/lib/local/lib.pm > "$HOME/perl5/lib/perl5/local/lib.pm"
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
curl -sL https://cpanmin.us | perl - App::cpanminus
- name: Install prerequisite modules
run: |
$HOME/perl5/bin/cpanm --notest --installdeps .
- name: Build
run: perl Makefile.PL && make
- name: Run Tests
run: prove --nocount --jobs 4 -I local/ -bl xt t