Browse Source

ci: latest Core and split webui test into a separate job

pull/2471/head
Maxim Prokhorov 2 years ago
parent
commit
c34acf1748
4 changed files with 34 additions and 19 deletions
  1. +31
    -16
      .github/workflows/push.yml
  2. +1
    -2
      ci_script.sh
  3. +2
    -1
      code/platformio.ini
  4. +0
    -0
      code/test/build/secure_client.h

+ 31
- 16
.github/workflows/push.yml View File

@ -12,6 +12,11 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('ci_install.sh') }}
- name: Cache PlatformIO
uses: actions/cache@v2
with:
@ -21,13 +26,11 @@ jobs:
run: |
./ci_install.sh host
./ci_script.sh host
build:
webui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: actions/setup-node@v2
with:
node-version: '14'
@ -36,23 +39,35 @@ jobs:
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('code/package-lock.json', 'code/package.json') }}
- name: WebUI tests
run: |
./ci_install.sh webui
./ci_script.sh webui
build:
runs-on: ubuntu-latest
env:
ESPURNA_PIO_SHARED_LIBRARIES: "y"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('ci_install.sh') }}
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('code/platformio.ini') }}
- name: WebUI tests
run: |
./ci_install.sh webui
./ci_script.sh webui
- name: PlatformIO build
env:
BUILDER_TOTAL_THREADS: 4
ESPURNA_PIO_PATCH_ISSUE_1610: "y"
ESPURNA_PIO_SHARED_LIBRARIES: "y"
TEST_ENV: "esp8266-4m-latest-base"
TEST_EXTRA_ARGS: "-a test/build/extra/secure_client.h"
- name: PlatformIO prepare
run: |
git config --global advice.detachedHead false
./ci_install.sh build
./ci_script.sh build
- run: |
./ci_script.sh build esp8266-4m-base
- run: |
./ci_script.sh build esp8266-4m-latest-base

+ 1
- 2
ci_script.sh View File

@ -13,8 +13,7 @@ case "$1" in
git --no-pager diff --stat
;;
("build")
# shellcheck disable=SC2086
scripts/test_build.py -e "$TEST_ENV" $TEST_EXTRA_ARGS
scripts/test_build.py -e $2
;;
("release")
./build.sh -r


+ 2
- 1
code/platformio.ini View File

@ -35,11 +35,12 @@ extra_configs =
# arduino core 2.7.2 = espressif8266@2.6.0
# arduino core 2.7.3 = espressif8266@2.6.1
# arduino core 2.7.4 = espressif8266@2.6.3 (platform)
# arduino core 3.0.0 = espressif8266@3.0.0 (platform_latest)
#
# ------------------------------------------------------------------------------
platform = espressif8266@2.6.3
platform_latest = espressif8266@2.6.3
platform_latest = espressif8266@3.0.0
# ------------------------------------------------------------------------------
# FLASH SIZE:


code/test/build/extra/secure_client.h → code/test/build/secure_client.h View File


Loading…
Cancel
Save