-
Notifications
You must be signed in to change notification settings - Fork 4
91 lines (77 loc) · 2.63 KB
/
linux_share_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
79
80
81
82
83
84
85
86
87
88
89
90
91
name: linux_share_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: cmake for geos
run: |
sudo apt-get --yes install cmake
- name: Locale check
run: |
locale -a
echo Current locale:
locale
- name: perl -V
run: perl -V
- name: Prepare for cache
run: |
perl -V > perlversion.txt
echo '20220320a' >> perlversion.txt
ls -l perlversion.txt
- name: Install Dynamic Dependencies
run: |
which -a cpanm
which -a perl
cpanm --notest local::lib
echo $(perl -Mlocal::lib=${HOME}/perl5)
eval "$(perl -Mlocal::lib=${HOME}/perl5)"
cpanm --notest Path::Tiny
cpanm --notest Test::TempDir::Tiny
cpanm --notest PDL
cpanm --notest Alien::Build
cpanm --installdeps --notest Alien::sqlite
cpanm -v Alien::sqlite
cpanm --installdeps --notest Alien::libtiff
cpanm -v Alien::libtiff
cpanm --installdeps --notest Alien::geos::af
cpanm -v Alien::geos::af
cpanm --installdeps --notest Alien::proj
cpanm -v Alien::proj
cpanm --installdeps --notest Alien::gdal
#cpanm -v Alien::gdal
cpanm -v https://github.com/shawnlaffan/perl-alien-gdal.git@issue_23_runtime_props
# some feedback to check the system
echo GDAL LDD
ldd `perl -MAlien::gdal -E'print q{}, Alien::gdal->dist_dir, q{/lib/libgdal.so}'`
- name: Install Geo::GDAL::FFI deps
run: |
echo $(perl -Mlocal::lib=${HOME}/perl5)
eval "$(perl -Mlocal::lib=${HOME}/perl5)"
cpanm --installdeps Geo::GDAL::FFI
- name: Build
run: |
echo $(perl -Mlocal::lib=${HOME}/perl5)
eval "$(perl -Mlocal::lib=${HOME}/perl5)"
# ideally we would not need this
export LD_LIBRARY_PATH=`perl -MAlien::geos::af -e'print Alien::geos::af->dist_dir . "/lib"'`
echo $LD_LIBRARY_PATH
#echo GDAL LDD again
export GDAL_LIB=`perl -MAlien::gdal -E'print q{}, Alien::gdal->dist_dir'`
ls -lR $GDAL_LIB
ldd `perl -MAlien::gdal -E'print q{}, Alien::gdal->dist_dir, q{/lib/libgdal.so}'`
perl Makefile.PL
cpanm --installdeps --notest .
make test