-
-
Notifications
You must be signed in to change notification settings - Fork 4
100 lines (68 loc) · 1.97 KB
/
ada.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
97
98
99
100
name: Continuous Integration
on:
push:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
container: ghcr.io/thindil/adabuild:10
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Generate tests
run: gnattest -P yass.gpr
- name: Build the tests
run: gprbuild -P tests/driver/test_driver.gpr
- name: Run the tests
run: others/tests.tcl
adacontrol:
needs: tests
runs-on: ubuntu-latest
container: ghcr.io/thindil/adacontrol:9
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run AdaControl
run: |
mkdir obj
cd obj
adactl -f ../others/rules.aru -p ../yass.gpr -o ../adacontrol.log -r yass-aws-templates_parser-dom-unicode-input_sources-aws_config-aws_net_log
cd ..
- name: Upload the log
uses: actions/upload-artifact@v2
if: failure()
with:
name: adacontrol.log
path: adacontrol.log
build_linux:
needs: adacontrol
runs-on: ubuntu-latest
container: ghcr.io/thindil/adabuild:10
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build the program
run: others/build.tcl x86_64-linux-gnu
- name: Compress the artifact
run: tar -cf yass-development-linux.tar usr
- name: Upload the artifact
uses: actions/upload-artifact@v2
with:
name: yass-development-linux.tar
path: yass-development-linux.tar
build_windows:
needs: adacontrol
runs-on: ubuntu-latest
container: ghcr.io/thindil/adabuildwin64:10
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build the program
run: others/build.tcl x86_64-windows
- name: Compress the artifact
run: tar -cf yass-development-windows.tar release
- name: Upload the artifact
uses: actions/upload-artifact@v2
with:
name: yass-development-windows.tar
path: yass-development-windows.tar