-
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (36 loc) · 1.08 KB
/
cygwin.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
---
# See https://github.com/FGasper/perl-github-action-tips
# See also https://github.com/egor-tensin/setup-cygwin/issues/9
name: Test Code on Cygwin
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
steps:
- name: Set up Cygwin
uses: egor-tensin/setup-cygwin@master
with:
platform: x64
packages: perl_base perl-ExtUtils-MakeMaker make gcc-g++ libcrypt-devel libnsl-devel bash
- uses: actions/checkout@main
with:
submodules: recursive
- run: perl -V
- run: cpan App::cpanminus
- name: Install Dependencies
run: cd $GITHUB_WORKSPACE; cpanm --verbose --notest --installdeps --with-configure --with-develop .
- name: perl Makefile.PL
run: cd $GITHUB_WORKSPACE; perl Makefile.PL
- name: make
run: cd $GITHUB_WORKSPACE; make
- name: prove -wlvmb t
run: cd $GITHUB_WORKSPACE; make test