-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (62 loc) · 2.18 KB
/
ci.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
name: Build Firmware
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_PATH: project
IDF_PATH: esp-idf
IDF_VERSION: v5.3.1
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
path: ${{ env.PROJECT_PATH }}
- name: Set up and Build Environment
uses: ./project/.github/actions/esp32_build_env
with:
IDF_PATH: ${{ env.IDF_PATH }}
PROJECT_PATH: ${{ env.PROJECT_PATH }}
- name: Build Unit tests
run: |
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tests
IDF_CCACHE_ENABLE=1 idf.py build
shell: bash
- name: Upload Unit tests Artifacts
uses: actions/upload-artifact@v3
with:
name: unit-tests-artifacts
path: |
${{ env.PROJECT_PATH }}/tests/**/build/*.bin
${{ env.PROJECT_PATH }}/tests/**/build/*.elf
${{ env.PROJECT_PATH }}/tests/**/build/flash_project_args
- name: Build DS18B20 verifier
run: |
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tools/ds18b20-verifier
IDF_CCACHE_ENABLE=1 idf.py build
shell: bash
- name: Upload DS18B20 Verifier Artifacts
uses: actions/upload-artifact@v3
with:
name: ds18b20-verifier-artifacts
path: |
${{ env.PROJECT_PATH }}/tools/ds18b20-verifier/**/build/*.bin
${{ env.PROJECT_PATH }}/tools/ds18b20-verifier/**/build/*.elf
${{ env.PROJECT_PATH }}/tools/ds18b20-verifier/**/build/flash_project_args
- name: Build DS rom code scanner
run: |
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tools/ds-rom-code-scanner
IDF_CCACHE_ENABLE=1 idf.py build
shell: bash
- name: Upload DS Rom Code Scanner Artifacts
uses: actions/upload-artifact@v3
with:
name: ds-rom-code-scanner-artifacts
path: |
${{ env.PROJECT_PATH }}/tools/ds-rom-code-scanner/**/build/*.bin
${{ env.PROJECT_PATH }}/tools/ds-rom-code-scanner/**/build/*.elf
${{ env.PROJECT_PATH }}/tools/ds-rom-code-scanner/**/build/flash_project_args