mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-29 18:27:31 +02:00
CI: Move separate master job to the loop loop
This commit is contained in:
60
.github/workflows/build.yml
vendored
60
.github/workflows/build.yml
vendored
@ -3,68 +3,34 @@ name: Build
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_idf_master:
|
|
||||||
name: build-with-IDF-master
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout esp-protocols
|
|
||||||
uses: actions/checkout@master
|
|
||||||
with:
|
|
||||||
path: esp-protocols
|
|
||||||
- name: Checkout IDF
|
|
||||||
uses: actions/checkout@master
|
|
||||||
with:
|
|
||||||
repository: espressif/esp-idf
|
|
||||||
path: esp-idf
|
|
||||||
|
|
||||||
- name: Build-examples-with-IDF
|
|
||||||
run: |
|
|
||||||
cd $GITHUB_WORKSPACE/esp-idf
|
|
||||||
git submodule update --init --recursive
|
|
||||||
./install.sh
|
|
||||||
source export.sh
|
|
||||||
cd $GITHUB_WORKSPACE/esp-protocols/components/esp_modem/examples/simple_cmux_client
|
|
||||||
idf.py build
|
|
||||||
cd $GITHUB_WORKSPACE/esp-protocols/components/esp_modem/examples/ap_to_pppos
|
|
||||||
idf.py build
|
|
||||||
cd $GITHUB_WORKSPACE/esp-protocols/components/esp_modem/examples/modem_console
|
|
||||||
idf.py build
|
|
||||||
cd $GITHUB_WORKSPACE/esp-protocols/components/esp_modem/examples/pppos_client
|
|
||||||
idf.py build
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
idf_ver: ["v4.1", "v4.2", "v4.3", "v4.4"]
|
idf_ver: ["latest", "release-v4.1", "release-v4.2", "release-v4.3", "release-v4.4"]
|
||||||
examples: ["pppos_client", "modem_console", "ap_to_pppos", "simple_cmux_client"]
|
example: ["pppos_client", "modem_console", "ap_to_pppos", "simple_cmux_client"]
|
||||||
idf_target: ["esp32"]
|
idf_target: ["esp32"]
|
||||||
exclude:
|
exclude:
|
||||||
- idf_ver: "v4.1"
|
- idf_ver: "release-v4.1"
|
||||||
examples: modem_console
|
example: modem_console
|
||||||
- idf_ver: "v4.1"
|
- idf_ver: "release-v4.1"
|
||||||
examples: ap_to_pppos
|
example: ap_to_pppos
|
||||||
- idf_ver: "v4.1"
|
- idf_ver: "release-v4.1"
|
||||||
examples: simple_cmux_client
|
example: simple_cmux_client
|
||||||
- idf_ver: "v4.2"
|
- idf_ver: "release-v4.2"
|
||||||
examples: simple_cmux_client
|
example: simple_cmux_client
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: espressif/idf:release-${{ matrix.idf_ver }}
|
container: espressif/idf:${{ matrix.idf_ver }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout IDF
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
- name: Checkout esp-protocols
|
- name: Checkout esp-protocols
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
path: esp-protocols
|
path: esp-protocols
|
||||||
- name: Build for ESP32
|
- name: Build ${{ matrix.example }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
|
||||||
env:
|
env:
|
||||||
IDF_TARGET: ${{ matrix.idf_target }}
|
IDF_TARGET: ${{ matrix.idf_target }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. ${IDF_PATH}/export.sh
|
. ${IDF_PATH}/export.sh
|
||||||
cd $GITHUB_WORKSPACE/esp-protocols/components/esp_modem/examples/${{ matrix.examples }}
|
cd $GITHUB_WORKSPACE/esp-protocols/components/esp_modem/examples/${{ matrix.example }}
|
||||||
idf.py build
|
idf.py build
|
||||||
|
Reference in New Issue
Block a user