-
Notifications
You must be signed in to change notification settings - Fork 99
78 lines (77 loc) · 2.18 KB
/
make-check.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches-ignore:
- 'translation'
jobs:
make-check:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- 'macos-13'
- 'macos-latest'
- 'ubuntu-latest'
perl:
- '5'
- '5.38'
- '5.36'
#- '5.34'
- '5.32'
- '5.30'
#- '5.28'
- '5.26'
- '5.24'
#- '5.22'
- '5.20'
#- '5.18'
- '5.16'
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies for Linux
if: runner.os == 'Linux'
run: |
sudo apt update -y
sudo apt install -y gettext
- name: Install dependencies for macOS
if: runner.os == 'macOS'
run: |
brew install automake
brew install openssl
brew install pkg-config
- name: Workaround for macOS
if: runner.os == 'macOS'
# For Crypt::SMIME
run: >
echo "PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig"
>> $GITHUB_ENV
- name: Set up Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
install-modules-with: cpanm
install-modules-args: >
--verbose --no-interactive
--with-develop
--with-feature=Data::Password --with-feature=ldap
--with-feature=safe-unicode --with-feature=smime
--with-feature=soap --with-feature=sqlite
${{ startsWith(matrix.os, 'macos') && '--with-feature=macos' || '' }}
- name: Run tests
run: |
if [ "$(uname -s)" = "Linux" ]; then
# Workaround to avoid reference to older libcrypto by perl binary
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
fi
PERL5LIB= autoreconf -i
./configure --with-defaultdir=`pwd`/default
cd src; make; cd ..
#make check-local TEST_FILES='xt/perltidy.t' || true
make check-local
shell: bash