-
Notifications
You must be signed in to change notification settings - Fork 132
101 lines (87 loc) · 3.74 KB
/
test.workflow.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: DepthAI Core HIL Testing
on:
workflow_dispatch:
push:
branches:
- v3_develop
tags:
- 'v*'
pull_request:
branches:
- v3_develop
# Only allow latest run on same branch to be tested
concurrency:
group: ci-tests-${{ github.ref }}-1
cancel-in-progress: true
jobs:
# Testing
rvc2_test:
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
strategy:
matrix:
# os: ['windows', 'macos', 'linux']
os: ['linux']
arch: ['x64']
flavor: ['vanilla', 'asan-ubsan', 'tsan']
exclude:
- os: 'windows'
arch: 'x64'
flavor: 'tsan'
fail-fast: false
runs-on: ['self-hosted', 'testbed-runner']
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Prepare HIL Framework
run: source scripts/hil/prepare_hil_framework.sh
- name: Configure, Build and Test
if: matrix.os != 'linux'
run: |
export RESERVATION_NAME="https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID#rvc2-${{ matrix.os }}-${{ matrix.flavor }}"
exec hil --capabilities depthai-core-hil --reservation-name $RESERVATION_NAME --wait --sync-workspace --exclude-build --commands 'cd /tmp/depthai-core|| exit' 'scripts/hil/run_hil_tests.sh ${{ matrix.flavor }} --rvc2'
- name: Configure, Build and Test
if: matrix.os == 'linux'
run: |
export RESERVATION_NAME="https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID#rvc2-${{ matrix.os }}-${{ matrix.flavor }}"
exec hil --capabilities depthai-core-hil --reservation-name $RESERVATION_NAME --wait --sync-workspace --exclude-build --commands 'cd /tmp/depthai-core|| exit' 'scripts/hil/run_hil_tests.sh ${{ matrix.flavor }} --rvc2'
# Testing
rvc4_test:
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
strategy:
matrix:
# os: ['windows', 'macos', 'linux']
os: ['linux']
arch: ['x64']
flavor: ['vanilla', 'asan-ubsan', 'tsan']
rvc4os: ['r851.1.2']
exclude:
- os: 'windows'
arch: 'x64'
flavor: 'tsan'
fail-fast: false
runs-on: ['self-hosted', 'testbed-runner']
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Prepare HIL Framework
run: source scripts/hil/prepare_hil_framework.sh
- name: Configure, Build and Test
if: matrix.os != 'linux'
run: |
export RESERVATION_NAME="https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID#rvc4-${{ matrix.os }}-${{ matrix.rvc4os }}-${{ matrix.flavor }}""
exec hil --capabilities depthai-core-hil --models oak4_pro --reservation-name $RESERVATION_NAME --wait --sync-workspace --exclude-build --commands 'cd /tmp/depthai-core|| exit' 'scripts/hil/run_hil_tests.sh ${{ matrix.flavor }} --rvc4 '
- name: Configure, Build and Test
if: matrix.os == 'linux'
run: |
export RESERVATION_NAME="https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID#rvc4-${{ matrix.os }}-${{ matrix.rvc4os }}-${{ matrix.flavor }}"
exec hil --capabilities depthai-core-hil --models oak4_pro --reservation-name $RESERVATION_NAME --wait --sync-workspace --exclude-build --rvc4-os-version ${{ matrix.rvc4os }} --commands 'cd /tmp/depthai-core|| exit' 'scripts/hil/run_hil_tests.sh ${{ matrix.flavor }} --rvc4'