Skip to content

Commit ca96e19

Browse files
committed
Merge branch 'ci/add_cxx_build' into 'main'
ci(esp-gmf): Add test_cxx_build See merge request adf/multimedia/esp-gmf!112
2 parents 4a350a4 + c7d6521 commit ca96e19

37 files changed

+607
-27
lines changed

.gitlab/ci/build_ut.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ variables:
3939
--build-dir ${IDF_VERSION_TAG}/build_@t_@w \
4040
--parallel-count ${parallel##*/} \
4141
--parallel-index ${parallel%%/*}
42+
- python $CI_PROJECT_DIR/tools/ci/check_test_cxx_build.py
4243
after_script:
4344
- find "${TEST_DIR}" -type d -name "managed_components" -exec rm -rf {} +
4445

.gitlab/ci/pre_check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ check_commit_format:
4747
- *check_branch_script
4848
- *check_commit_script
4949
- *check_code_script
50+
- check_project_root_dir_change
5051
allow_failure: true
5152
artifacts:
5253
paths:

.gitlab/ci/rules.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
.patterns-build_components: &patterns-build_components
2+
- ".gitlab/**/*"
3+
- "tools/**/*"
4+
- "elements/**/*"
5+
- "gmf_core/**/*"
6+
- "packages/**/*"
7+
18
##############
29
# if anchors #
310
##############
@@ -100,10 +107,12 @@
100107

101108
.rules:build:enable-gmf-unit-test:
102109
rules:
110+
- <<: *if-dev-push
111+
when: never
103112
- <<: *if-label-skip_unit_test
104113
when: never
105114
- <<: *if-web
106115
- <<: *if-protected
107116
- <<: *if-trigger
108117
- <<: *if-schedule
109-
- <<: *if-merge_request_event
118+
- changes: *patterns-build_components

elements/gmf_audio/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.7.2
4+
5+
### Features
6+
7+
- Support C++ build
8+
39
## v0.7.1
410

511
### Bug Fixes

elements/gmf_audio/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.7.1"
1+
version: "0.7.2"
22
description: Espressif GMF Audio Elements Module
33
url: https://github.com/espressif/esp-gmf/tree/main/elements/gmf_audio
44
documentation: "https://github.com/espressif/esp-gmf/blob/main/elements/gmf_audio/README.md"

elements/gmf_audio/include/esp_gmf_alc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ extern "C" {
1717

1818
#define DEFAULT_ESP_GMF_ALC_CONFIG() { \
1919
.sample_rate = 48000, \
20-
.bits_per_sample = 16, \
2120
.channel = 2, \
21+
.bits_per_sample = 16, \
2222
}
2323

2424
/**

elements/gmf_audio/include/esp_gmf_bit_cvt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ extern "C" {
1717

1818
#define DEFAULT_ESP_GMF_BIT_CVT_CONFIG() { \
1919
.sample_rate = 48000, \
20-
.src_bits = 16, \
2120
.channel = 2, \
21+
.src_bits = 16, \
2222
.dest_bits = 16, \
2323
}
2424

elements/gmf_audio/include/esp_gmf_eq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ extern "C" {
2222
*/
2323
#define DEFAULT_ESP_GMF_EQ_CONFIG() { \
2424
.sample_rate = 48000, \
25-
.bits_per_sample = 16, \
2625
.channel = 2, \
26+
.bits_per_sample = 16, \
2727
.filter_num = 0, \
2828
.para = NULL, \
2929
}

elements/gmf_audio/include/esp_gmf_fade.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ extern "C" {
1616
#endif /* __cplusplus */
1717

1818
#define DEFAULT_ESP_GMF_FADE_CONFIG() { \
19-
.sample_rate = 48000, \
20-
.bits_per_sample = 16, \
21-
.channel = 2, \
22-
.transit_time = 500, \
2319
.mode = ESP_AE_FADE_MODE_FADE_IN, \
2420
.curve = ESP_AE_FADE_CURVE_LINE, \
21+
.transit_time = 500, \
22+
.sample_rate = 48000, \
23+
.channel = 2, \
24+
.bits_per_sample = 16, \
2525
}
2626

2727
/**

elements/gmf_audio/include/esp_gmf_mixer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ extern "C" {
2222
*/
2323
#define DEFAULT_ESP_GMF_MIXER_CONFIG() { \
2424
.sample_rate = 48000, \
25-
.bits_per_sample = 16, \
2625
.channel = 2, \
26+
.bits_per_sample = 16, \
2727
.src_num = 0, \
2828
.src_info = NULL, \
2929
}

0 commit comments

Comments
 (0)