ci: add component test apps #654
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push components to Espressif Component Service | |
on: | |
# For pull requests: perform upload with "--dry-run" argument, | |
# i.e. validate that the component passes all checks for being uploaded. | |
pull_request: | |
# For pushes to master: actually upload the components to the registry. | |
push: | |
branches: | |
- master | |
jobs: | |
upload_components: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- run: | | |
echo "${{ ( github.ref_name != 'master' || github.repository_owner != 'espressif' ) && 'Checking' || 'Uploading' }} components" | |
- name: Upload components to component service | |
uses: espressif/upload-components-ci-action@v1 | |
with: | |
# Please try to keep the directories list sorted. | |
# | |
# Do note, however, that if you are updating two components in the same PR | |
# and one depends on the other, the new version of the 2nd component won't | |
# be found in the registry when the 1st component is uploaded. | |
# | |
# This is only a problem if you are adding two components for the first time, | |
# or if the 2nd component depends on the exact (new) version of the first one. | |
# | |
directories: > | |
bdc_motor; | |
catch2; | |
cbor; | |
ccomp_timer; | |
coap; | |
coremark; | |
dhara; | |
eigen; | |
esp_delta_ota; | |
esp_encrypted_img; | |
esp_lcd_qemu_rgb; | |
esp_jpeg; | |
esp_serial_slave_link; | |
expat; | |
fmt; | |
freetype; | |
iqmath; | |
jsmn; | |
json_generator; | |
json_parser; | |
led_strip; | |
libsodium; | |
network_provisioning; | |
nghttp; | |
onewire_bus; | |
pcap; | |
pid_ctrl; | |
qrcode; | |
quirc; | |
sh2lib; | |
spi_nand_flash; | |
supertinycron; | |
thorvg; | |
zlib; | |
libpng; | |
namespace: "espressif" | |
# API token will only be available in the master branch in the main repository. | |
# However, dry-run doesn't require a valid token. | |
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} | |
dry_run: ${{ github.ref_name != 'master' || github.repository_owner != 'espressif' }} |