-
Notifications
You must be signed in to change notification settings - Fork 1
122 lines (92 loc) · 3.85 KB
/
main.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: CI-OS-ubuntu-windows
on:
push:
branches:
- master
- 'release/v*'
- 'feature/**'
paths:
- 'scripts/**'
- 'tests/**'
pull_request:
branches: [ master, release]
paths:
- 'scripts/**'
- 'tests/**'
jobs:
test-pretty-printers:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
# env:
# TEST_DIR_PATH: ./tests/offsets_finder
# PYTHON_TEST: ./tests/Test_GDB_python.gdb
# GDB_TEST_SCRIPT: find_offsets.gdb
# EXE_FILE: ./exe/main.exe
# GNAT_BIN_PATH: C:\GNAT\bin
steps:
# - name: Chocolatey configuration
# run: choco config list
# - name: Store Chocolatey cache dir
# run: echo ::set-env name=CHOCOLATEY_CACHE_PATH::$(choco config get cacheLocation)
# - name: Get chocolatey cache dir
# id: choco-cache-dir-path
# run: echo "::set-output name=dir::$(choco config get cacheLocation)"
# - name: Cache the chocolatey download dir
# uses: actions/cache@v1
# id: choco-cache
# with:
# path: ${{ steps.choco-cache-dir-path.outputs.dir }}
# key: ${{ matrix.os }}-chocolatey-download-cache
# restore-keys: |
# ${{ matrix.os }}-chocolatey-download-cache
- name: Install relevant packets gnat-gpl which will hopefully provide gprbuild, gnat and gdb
run: choco install gnat-gpl # -v -d
if: matrix.os == 'windows-latest'
- name: Add GNAT to PATH, chocolatey cannot do it by itself ?
run: echo "::add-path::C:\GNAT\bin"
if: matrix.os == 'windows-latest'
- name: Install relevant packets gnat, texinfo, gdb, gprbuild
run: sudo apt-get install gnat texinfo gdb gprbuild
if: matrix.os == 'ubuntu-latest'
- name: GDB location, version and configuration
run: gdb --version && gdb --configuration
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Check GDB supports python
run: gdb --command=./tests/Test_GDB_python.gdb --batch
- name: Build offsets_finder (gprbuild finds automagically the .gpr file, -p to force missing dirs creation)
run: gprbuild -p -vm
working-directory: ./tests/offsets_finder
# Runs a set of commands using the runners shell
- name: Run offsets_finder GDB session
run: gdb --se=./exe/main --command=find_offsets.gdb --batch
working-directory: ./tests/offsets_finder
if: matrix.os == 'ubuntu-latest'
- name: Run offsets_finder GDB session
run: gdb --se=./exe/main.exe --command=find_offsets.gdb --batch
working-directory: ./tests/offsets_finder
if: matrix.os == 'windows-latest'
- name: Build cpp_test_project (gprbuild finds automagically the .gpr file, -p to force missing dirs creation)
run: gprbuild -p -vm
working-directory: ./tests/cpp_test_project
- name: PERFORM GDB [TEST THE TEST SUITE]
run: gdb --se=./exe/main.exe --command=Test_Test_Suite.gdb --batch
working-directory: ./tests/cpp_test_project
if: matrix.os == 'windows-latest'
- name: PERFORM GDB [TEST THE TEST SUITE]
run: gdb --se=./exe/main --command=Test_Test_Suite.gdb --batch
working-directory: ./tests/cpp_test_project
if: matrix.os == 'ubuntu-latest'
- name: PERFORM GDB [TEST SUITE]
run: gdb --se=./exe/main.exe --command=Test_Suite.gdb --batch
working-directory: ./tests/cpp_test_project
if: matrix.os == 'windows-latest'
- name: PERFORM GDB [TEST SUITE]
run: gdb --se=./exe/main --command=Test_Suite.gdb --batch
working-directory: ./tests/cpp_test_project
if: matrix.os == 'ubuntu-latest'