@@ -12,6 +12,9 @@ export GPR_PROJECT_PATH=$prefix/share/gpr
12
12
export CPATH=/usr/local/include:/mingw64/include
13
13
export LIBRARY_PATH=/usr/local/lib:/mingw64/lib
14
14
export DYLD_LIBRARY_PATH=/usr/local/lib
15
+ export PATH=` ls -d $PWD /cached_gnat/* /bin | tr ' \n' ' :' ` $PATH
16
+ echo PATH=$PATH
17
+
15
18
if [ $RUNNER_OS = Linux ]; then
16
19
LIBRARY_TYPES=" relocatable,static"
17
20
else
20
23
pip install -r langkit/REQUIREMENTS.dev
21
24
pip install jsonschema
22
25
pip install langkit/
23
- # gnat-ce installation is cached, so gnatcoll/gpr could be uninstalled already
24
- gprinstall --uninstall gnatcoll || true
25
- gprinstall --uninstall gpr || true
26
26
27
- make -C gprbuild prefix=$prefix BUILD=${DEBUG:- production} GPRBUILD_OPTIONS=" -cargs:C -Dst_mtim=st_mtimespec -gargs" libgpr.build.{shared,static} libgpr.install.{shared,static}
27
+ alr --non-interactive get xmlada
28
+ cd xmlada*
29
+ ./configure --prefix=$prefix ${DEBUG: +--enable-build=Debug}
30
+ make all install
31
+ cd ..
32
+
33
+ make -C gprbuild_ prefix=$prefix BUILD=${DEBUG:- production} GPRBUILD_OPTIONS=" -cargs:C -Dst_mtim=st_mtimespec -gargs" libgpr.build.{shared,static} libgpr.install.{shared,static}
28
34
BUILD=` echo $DEBUG | tr [a-z] [A-Z]` # Convert to uppercase
29
35
make -C gnatcoll-core prefix=$prefix BUILD=${BUILD:- PROD} LIBRARY_TYPES=" ${LIBRARY_TYPES/ ,/ } " build install
30
36
python gnatcoll-bindings/iconv/setup.py build ${DEBUG: +--debug} -j0 --prefix=$prefix --library-types=$LIBRARY_TYPES
@@ -37,12 +43,14 @@ langkit/manage.py build-langkit-support --library-types $LIBRARY_TYPES
37
43
langkit/manage.py install-langkit-support $prefix --library-types $LIBRARY_TYPES
38
44
39
45
BUILD=${DEBUG: +dev} # Convert debug to dev
46
+
40
47
# Build libadalang static library
41
48
./manage.py generate
42
49
./manage.py build --library-types=static --build-mode ${BUILD:- prod}
43
50
./manage.py install --library-types=static --build-mode ${BUILD:- prod} $prefix
44
51
gprinstall --uninstall --prefix=$prefix mains.gpr
45
52
tar czf libadalang-$RUNNER_OS -` basename $GITHUB_REF ` ${DEBUG: +-dbg} -static.tar.gz -C $prefix .
53
+
46
54
# Build libadalang relocatable library
47
55
if [ " $LIBRARY_TYPES " != static ]; then
48
56
gprinstall --uninstall --prefix=$prefix libadalang.gpr
0 commit comments