-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (79 loc) · 3 KB
/
manual.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
92
93
94
95
96
name: tests
on: push
jobs:
building_and_testing:
runs-on: ubuntu-latest
env:
ADA_AIR: ${{ github.workspace }}/ada-air/
steps:
# installing everything
- name: cloning ada-air
uses: actions/checkout@v3
with:
path: 'ada-air'
submodules: recursive
# only for tests
- name: cloning aws
uses: actions/checkout@v3
with:
repository: 'AdaCore/aws'
path: 'aws'
ref: 'master'
# only for tests
- name: cloning Ada_Drivers_Library
uses: actions/checkout@v3
with:
repository: 'AdaCore/Ada_Drivers_Library'
path: 'Ada_Drivers_Library'
ref: 'master'
# only for tests
- name: cloning Dependency_Graph_Extractor-Ada
uses: actions/checkout@v3
with:
repository: 'TNO/Dependency_Graph_Extractor-Ada'
path: 'Dependency_Graph_Extractor-Ada'
ref: 'main'
- name: installing python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: installing java
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
- name: installing Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.6
- name: downloading rascal jar
run: curl -o rascal-shell-stable.jar https://update.rascal-mpl.org/console/rascal-shell-stable.jar
- name: installing alire
uses: alire-project/setup-alire@v1
with:
toolchain: 'gnat_native=11.2.4 gprbuild'
# generating source code and conpiling it
- name: running install script
run: cd ada-air; bash install_unix.sh
# launching tests
- name: setting environment variables
run: |
echo "LIBADALANG_PATH=$(find $ADA_AIR/src/main/ada/alire/ -type d -name libadalang_*)" >> $GITHUB_ENV
echo "GNATCOLL_PATH=$(find $ADA_AIR/src/main/ada/alire/ -type d -name gnatcoll_2*)" >> $GITHUB_ENV
echo "XMLADA_PATH=$(find $ADA_AIR/src/main/ada/alire/ -type d -name xmlada_*)" >> $GITHUB_ENV
echo "LANGKIT_SUPPORT_PATH=$(find $ADA_AIR/src/main/ada/alire/ -type d -name langkit_support_*)" >> $GITHUB_ENV
echo "ADA_RUNTIME_PATH=$(find /home/runner/.config/alire/cache/dependencies/gnat_native_* -type d -name adainclude)" >> $GITHUB_ENV
- name: running tests
run: cd ada-air/test/; python launch_test.py 2
env:
RASCAL_JAR: ${{ github.workspace }}/rascal-shell-stable.jar
TMP: ${{ runner.temp }}
LD_PRELOAD: ${{ env.JAVA_HOME }}/lib/libjsig.so
LIBADALANG_PATH: ${{ env.LIBADALANG_PATH }}
GNATCOLL_PATH: ${{ env.GNATCOLL_PATH }}
XMLADA_PATH: ${{ env.XMLADA_PATH }}
LANGKIT_SUPPORT_PATH: ${{ env.LANGKIT_SUPPORT_PATH }}
ADA_RUNTIME_PATH: ${{ env.ADA_RUNTIME_PATH }}
AWS_PATH: ${{ github.workspace }}/aws/
ADA_DRIVERS_LIBRARY_PATH: ${{ github.workspace }}/Ada_Drivers_Library/
DEPENDENCY_GRAPH_EXTRACTOR_ADA_PATH: ${{ github.workspace }}/Dependency_Graph_Extractor-Ada/