Skip to content

Commit

Permalink
Merge branch 'ci/update_upload_job' into 'master'
Browse files Browse the repository at this point in the history
ci: Upload to the ESP component registry from a GitHub action

See merge request idf/esp-dsp!122
  • Loading branch information
dmitry1945 committed Aug 16, 2024
2 parents e768737 + 5920c02 commit b3841d6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 23 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/upload_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Push component to https://components.espressif.com
on:
push:
tags:
- v*
jobs:
upload_components:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Upload component to the component registry
uses: espressif/upload-components-ci-action@v1
with:
name: "esp-dsp"
version: ${{ github.ref_name }}
namespace: "espressif"
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
22 changes: 2 additions & 20 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ variables:
TEST_DIR: "$CI_PROJECT_DIR/test_app"
SIZE_INFO_LOCATION: "${TEST_DIR}/size_info.txt"


ESP_IDF_GIT: "https://gitlab-ci-token:${CI_JOB_TOKEN}@${GITLAB_HTTPS_SERVER}/espressif/esp-idf.git"

.setup_idf_tools: &setup_idf_tools |
Expand Down Expand Up @@ -177,7 +176,7 @@ build_clang_idf_latest:
- python -m idf_build_apps build -v -p .
--recursive
--target all
--default-build-targets "${TEST_TARGETS}"
--default-build-targets ${TEST_TARGETS}
--config "sdkconfig.*=" --build-dir "build"
--collect-size-info $SIZE_INFO_LOCATION
--parallel-count ${CI_NODE_TOTAL:-1}
Expand Down Expand Up @@ -221,7 +220,7 @@ build_latest_test_app:
# - tools/idf_tools.py --non-interactive install cmake
# - tools/idf_tools.py install-python-env
# - tools/idf_tools.py --non-interactive install && eval "$(tools/idf_tools.py --non-interactive export)" || exit 1
# - ' "ESP-IDF: ${IDF_VERSION}" >> ${TEST_DIR}/idf_version_info.txt'
# - 'echo "ESP-IDF: ${IDF_VERSION}" >> ${TEST_DIR}/idf_version_info.txt'
# - pip install "pytest-embedded-serial-esp~=1.2.3" "pytest-embedded-idf~=1.2.3"

.test_template:
Expand Down Expand Up @@ -339,20 +338,3 @@ push_master_to_github:
- git clone --depth 1 ${ESP_IDF_GIT} esp-idf
- *add_gh_key_remote
- esp-idf/tools/ci/push_to_github.sh

upload_to_component_manager:
image: espressif/idf:latest
stage: deploy
tags:
- deploy
only:
- master
- /^release\/v/
- /^v\d+\.\d+(\.\d+)?($|-)/
when: on_success
dependencies: []
script:
- pip install idf-component-manager
- export IDF_COMPONENT_REGISTRY_URL=https://components.espressif.com/
- export IDF_COMPONENT_STORAGE_URL=https://components-file.espressif.com/
- python -m idf_component_manager upload-component --allow-existing --name=esp-dsp --namespace=espressif
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

### Added

### Removed

## [1.5.2] 2024-08-16

### Changed
- Add esp32p4 chip to chip list into main readme

Expand Down
4 changes: 1 addition & 3 deletions idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "1.5.1"

description: ESP-DSP is the official DSP library for Espressif SoCs.
url: https://github.com/espressif/esp-dsp
repository: https://github.com/espressif/esp-dsp.git
Expand All @@ -11,7 +9,7 @@ examples:
- path: ./applications/azure_board_apps
- path: ./applications/azure_board_apps/apps
- path: ./applications/lyrat_board_app

files:
exclude:
- "**/Makefile"
Expand Down

0 comments on commit b3841d6

Please sign in to comment.