forked from ajolma/Geo-GDAL-FFI
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (64 loc) · 1.97 KB
/
linux_bin_build.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
name: linux_bin_build
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
env:
PERL_MOD_DIR: /home/runner/perl5/lib/perl5
jobs:
perl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.38'
- name: Locale check
run: |
locale -a
echo Current locale:
locale
- name: perl -V
run: perl -V
- name: Prepare for CPAN cache
run: |
perl -V > perlversion.txt
# echo '20220320a' >> perlversion.txt
echo 'bin build' >> perlversion.txt
# dir perlversion.txt
- name: Cache CPAN modules
uses: actions/cache@v4
with:
path: /home/runner/perl5/
key: ${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }}
restore-keys: |
${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }}
- name: Install Dependencies
run: |
sudo apt-get install -y zlib1g-dev
sudo apt-get install -y libnet-ssleay-perl
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get install -y gdal-bin
cpanm --notest local::lib
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
cpanm --notest PkgConfig
cpanm --notest Alien::Build
cpanm --notest Alien::Base::Wrapper
cpanm --notest FFI::Platypus
cpanm --notest FFI::Platypus::Declare
cpanm --notest Sort::Versions
cpanm --notest Test::Exception
cpanm --notest JSON
cpanm --notest PDL
cpanm --notest Path::Tiny
cpanm --notest Test::TempDir::Tiny
- name: Build
run: |
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
perl Makefile.PL
cpanm --notest --installdeps .
make test