-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (50 loc) · 1.5 KB
/
Copy pathmain.yaml
File metadata and controls
61 lines (50 loc) · 1.5 KB
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
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build-and-test:
strategy:
matrix:
# Also build on Windows since there have been some windows-specific
# problems in the past around line ending style checks.
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- uses: alire-project/setup-alire@v5
with:
version: 2.1.0
toolchain: 'gnat_arm_elf gprbuild'
- name: Generate Runtimes
shell: bash
run: ./generate-runtimes.sh
- name: Build Runtimes
shell: bash
run: |
for dir in install/*/; do
echo "::group::Build $(basename $dir)"
(cd $dir && alr build --validation)
echo "::endgroup::"
done
- name: Install Test Dependencies
run: |
pip install -r tests/requirements.txt
- name: Run tests
run: |
cd tests
pytest . -v --junit-xml=reports/runtime-tests.xml
- name: Test Report
uses: dorny/test-reporter@v2.6.0
if: ${{ !cancelled() }} # run this step even if previous step failed
with:
name: Runtime Tests
path: tests/reports/*.xml
reporter: java-junit