-
Notifications
You must be signed in to change notification settings - Fork 1
89 lines (68 loc) · 2.66 KB
/
tests.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
name: Tests
on: [push, pull_request]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
RetrieveTargetsMatrix:
uses: ./.github/workflows/create-matrix.yml
Test-fetch:
runs-on: ubuntu-latest
needs: RetrieveTargetsMatrix
strategy:
matrix: ${{ fromJSON(needs.RetrieveTargetsMatrix.outputs.matrix) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/installToolchain
- name: Create build directory for tests/fetch
run: cmake -E make_directory ${{ runner.workspace }}/tests/fetch/build
- name: Configure tests/fetch
shell: bash
working-directory: ${{ runner.workspace }}/tests/fetch/build
run: cmake -DTEST_FAMILIES=${{ matrix.family }} $GITHUB_WORKSPACE/tests/fetch/
- name: Build tests/fetch
working-directory: ${{ runner.workspace }}/tests/fetch/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
Test-CMSIS:
runs-on: ubuntu-latest
needs: RetrieveTargetsMatrix
strategy:
matrix: ${{ fromJSON(needs.RetrieveTargetsMatrix.outputs.matrix) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/installToolchain
- name: Create build directory for tests/cmsis
run: cmake -E make_directory ${{ runner.workspace }}/tests/cmsis/build
if: ${{ matrix.family != 'MP1' }}
- name: Configure tests/cmsis
shell: bash
working-directory: ${{ runner.workspace }}/tests/cmsis/build
run: cmake -DTEST_FAMILIES=${{ matrix.family }} -DFETCH_ST_SOURCES=TRUE $GITHUB_WORKSPACE/tests/cmsis/
if: ${{ matrix.family != 'MP1' }}
- name: Build tests/cmsis
working-directory: ${{ runner.workspace }}/tests/cmsis/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
if: ${{ matrix.family != 'MP1' }}
Test-HAL:
runs-on: ubuntu-latest
needs: RetrieveTargetsMatrix
strategy:
matrix: ${{ fromJSON(needs.RetrieveTargetsMatrix.outputs.matrix) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/installToolchain
- name: Create build directory for tests/hal
run: cmake -E make_directory ${{ runner.workspace }}/tests/hal/build
- name: Configure tests/hal
shell: bash
working-directory: ${{ runner.workspace }}/tests/hal/build
run: cmake -DTEST_FAMILIES=${{ matrix.family }} -DFETCH_ST_SOURCES=TRUE $GITHUB_WORKSPACE/tests/hal/
- name: Build tests/hal
working-directory: ${{ runner.workspace }}/tests/hal/build
shell: bash
run: cmake --build . --config $BUILD_TYPE