forked from eclipse-threadx/usbx
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 2.3 KB
/
Copy pathregression_samples_test.yml
File metadata and controls
67 lines (58 loc) · 2.3 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
62
63
64
65
66
67
name: USBX Samples Regression Test
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'samples/demo_device_hid_keyboard_rtos.c'
- 'samples/demo_device_hid_mouse_rtos.c'
- 'test/regression_samples_rtos/**'
- 'test/cmake/usbx/regression_samples_rtos/**'
- 'scripts/build_regression_samples.sh'
- 'scripts/test_regression_samples.sh'
- 'common/**'
- 'ports/linux/**'
pull_request:
branches: [ master ]
paths:
- 'samples/demo_device_hid_keyboard_rtos.c'
- 'samples/demo_device_hid_mouse_rtos.c'
- 'test/regression_samples_rtos/**'
- 'test/cmake/usbx/regression_samples_rtos/**'
- 'scripts/build_regression_samples.sh'
- 'scripts/test_regression_samples.sh'
- 'common/**'
- 'ports/linux/**'
jobs:
regression_samples:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install 32-bit build dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y gcc-multilib g++-multilib ninja-build cmake
- name: Clone external dependencies
run: |
mkdir -p test/externals
git clone --depth 1 https://github.com/eclipse-threadx/threadx.git test/externals/threadx
git clone --depth 1 https://github.com/eclipse-threadx/netxduo.git test/externals/netxduo
git clone --depth 1 https://github.com/eclipse-threadx/filex.git test/externals/filex
- name: Build libs (threadx / netxduo / filex)
run: |
cd test/cmake/usbx
[ -f .run.sh ] || ln -sf ../../externals/threadx/scripts/cmake_bootstrap.sh .run.sh
./.run.sh build_libs
- name: Build samples regression tests
run: ./scripts/build_regression_samples.sh samples_rtos_build
- name: Run samples regression tests
run: |
cd test/cmake/usbx/build/samples_rtos_build
ctest --output-on-failure -R 'regression_samples_rtos::' --parallel 4 --output-junit regression_samples_rtos.xml
- name: Publish test results
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: 'test/cmake/usbx/build/samples_rtos_build/regression_samples_rtos.xml'
check_name: 'Samples Regression Test Results'