mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-08-01 19:55:12 +02:00
Merge branch 'fix/update_actions_v4' into 'master'
PR: workflows: fix update actions to v4 Closes IDFGH-14621 See merge request espressif/esp-mqtt!228
This commit is contained in:
4
.github/workflows/build-app.yml
vendored
4
.github/workflows/build-app.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
|
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
- name: Checkout esp-mqtt
|
- name: Checkout esp-mqtt
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: ccache
|
- name: ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
with:
|
with:
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
cp -r . $IDF_PATH/components/mqtt/esp-mqtt
|
cp -r . $IDF_PATH/components/mqtt/esp-mqtt
|
||||||
IDF_CCACHE_ENABLE=1 idf-build-apps build --config-file ci/idf_build_apps.toml -p ${{inputs.app_path}} -t ${{inputs.target}}
|
IDF_CCACHE_ENABLE=1 idf-build-apps build --config-file ci/idf_build_apps.toml -p ${{inputs.app_path}} -t ${{inputs.target}}
|
||||||
- name: Upload files to artifacts for run-target job
|
- name: Upload files to artifacts for run-target job
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{inputs.upload_artifacts}}
|
if: ${{inputs.upload_artifacts}}
|
||||||
with:
|
with:
|
||||||
name: mqtt_bin_${{inputs.target}}_${{ inputs.idf_version }}_${{ inputs.app_name }}
|
name: mqtt_bin_${{inputs.target}}_${{ inputs.idf_version }}_${{ inputs.app_name }}
|
||||||
|
4
.github/workflows/mqtt__host-tests.yml
vendored
4
.github/workflows/mqtt__host-tests.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
COMP_DIR: components/mqtt/esp-mqtt
|
COMP_DIR: components/mqtt/esp-mqtt
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout esp-mqtt
|
- name: Checkout esp-mqtt
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Build and Test
|
- name: Build and Test
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -66,7 +66,7 @@ jobs:
|
|||||||
- name: Write to Job Summary
|
- name: Write to Job Summary
|
||||||
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
|
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: docs_gcovr
|
name: docs_gcovr
|
||||||
|
6
.github/workflows/run-on-target.yml
vendored
6
.github/workflows/run-on-target.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
|||||||
ip route
|
ip route
|
||||||
echo runner_ip ="`ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'`" >> "$GITHUB_OUTPUT"
|
echo runner_ip ="`ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'`" >> "$GITHUB_OUTPUT"
|
||||||
- name: Checkout IDF ${{inputs.idf_version}}
|
- name: Checkout IDF ${{inputs.idf_version}}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: espressif/esp-idf
|
repository: espressif/esp-idf
|
||||||
path: ${{env.IDF_PATH}}
|
path: ${{env.IDF_PATH}}
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi/"
|
PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi/"
|
||||||
run: |
|
run: |
|
||||||
pip install --only-binary cryptography -r ${{env.IDF_PATH}}/tools/requirements/requirements.pytest.txt
|
pip install --only-binary cryptography -r ${{env.IDF_PATH}}/tools/requirements/requirements.pytest.txt
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: mqtt_bin_${{inputs.target}}_${{ inputs.idf_version }}_${{ inputs.app_name }}
|
name: mqtt_bin_${{inputs.target}}_${{ inputs.idf_version }}_${{ inputs.app_name }}
|
||||||
path: build
|
path: build
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
- name: Run ${{inputs.app_name}} application on ${{inputs.target}}
|
- name: Run ${{inputs.app_name}} application on ${{inputs.target}}
|
||||||
run: |
|
run: |
|
||||||
python -m pytest ${{inputs.app_path}} --log-cli-level DEBUG --app-path . --junit-xml=./results_${{inputs.app_name}}_${{inputs.idf_version}}.xml --target=${{inputs.target}}
|
python -m pytest ${{inputs.app_path}} --log-cli-level DEBUG --app-path . --junit-xml=./results_${{inputs.app_name}}_${{inputs.idf_version}}.xml --target=${{inputs.target}}
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: results_${{inputs.app_name}}_${{inputs.idf_version}}.xml
|
name: results_${{inputs.app_name}}_${{inputs.idf_version}}.xml
|
||||||
|
16
.github/workflows/test-examples.yml
vendored
16
.github/workflows/test-examples.yml
vendored
@@ -28,21 +28,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
idf_version: ["release-v5.0", "release-v5.1", "latest"]
|
idf_version: ["release-v5.0", "release-v5.1", "latest"]
|
||||||
target: ["esp32s2", "esp32c3", "esp32s3"]
|
target: ["esp32s2", "esp32c3", "esp32s3"]
|
||||||
example: [{name: ssl_psk, path: "mqtt/ssl_psk"}]
|
example: [{name: ssl_psk, path: "mqtt/ssl_psk"}, {name: ssl_ds, path: "mqtt/ssl_ds"}]
|
||||||
uses: "./.github/workflows/build-app.yml"
|
|
||||||
with:
|
|
||||||
idf_version: ${{matrix.idf_version}}
|
|
||||||
target: ${{matrix.target}}
|
|
||||||
app_name: ${{matrix.example.name}}
|
|
||||||
app_path: $IDF_PATH/examples/protocols/${{matrix.example.path}}
|
|
||||||
|
|
||||||
build-only-ds-example:
|
|
||||||
name: Build Only Apps
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
idf_version: ["release-v5.0", "release-v5.1", "latest"]
|
|
||||||
target: ["esp32s2", "esp32c3", "esp32s3"]
|
|
||||||
example: [{name: ssl_ds, path: "mqtt/ssl_ds"}, {name: ssl_psk, path: "mqtt/ssl_psk"}]
|
|
||||||
uses: "./.github/workflows/build-app.yml"
|
uses: "./.github/workflows/build-app.yml"
|
||||||
with:
|
with:
|
||||||
idf_version: ${{matrix.idf_version}}
|
idf_version: ${{matrix.idf_version}}
|
||||||
|
Reference in New Issue
Block a user