forked from espressif/esp-at
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.74 KB
/
build_template_esp32c6.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
name: Reusable esp32c6-at workflow template
on:
workflow_call:
# parameters from upstream workflow
inputs:
module_name:
required: true
type: string
artifacts_name:
required: true
type: string
# parameters from upstream inherit
secrets:
ESP32C6_4MB_TOKEN:
required: false
jobs:
build-template-esp32c6:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-python@v4.3.0
with:
python-version: '3.10'
- name: Configure prerequisites
run: |
# set module information
mkdir build
echo -e "{\"platform\": \"PLATFORM_ESP32C6\", \"module\": \"${{ inputs.module_name }}\", \"silence\": 0}" > build/module_info.json
# update esp32c6 ota token
cd components/at/private_include
rm -f at_ota_token.h
echo -e "#pragma once" >> at_ota_token.h
echo -e "#define CONFIG_ESP_AT_OTA_TOKEN_ESP32C6_4MB \"${{ secrets.AT_OTA_TOKEN_ESP32C6_4MB }}\"" >> at_ota_token.h
echo -e "#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C6_4MB \"${{ secrets.AT_OTA_TOKEN_ESP32C6_4MB }}\"" >> at_ota_token.h
cd -
- name: Install ESP-IDF environment variables
run: |
./build.py install
- name: Compile
run: |
./build.py build
- name: Upload artifacts
uses: actions/upload-artifact@v3.1.1
with:
name: ${{ inputs.artifacts_name }}
path: |
sdkconfig
build/*.bin
build/*.elf
build/*.map
build/bootloader/*.bin
build/partition_table/*.bin
build/customized_partitions/*
build/flasher_args.json
build/download.config
build/factory/*