workflows/publish.yml: Run the workflow on success and failure only. (#6531)

* workflows/publish.yml: Run the workflow on success and failure only.
This prevents trying to run when the trigger was cancelled or skipped.
In these cases there will be no event file to upload.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>

* scripts/sketch_utils.sh: Move the logic that gets the build dir after
the part that retrieves the arguments.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>

* workflows/hil.yml: Update the HIL runners tags.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>

* workflows/hil.yml: Remove the Check Artifacts step.  That was only
useful for debugging.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche
2022-04-21 16:53:37 +02:00
committed by GitHub
parent 02f4178b72
commit 323bbbf63b
3 changed files with 17 additions and 13 deletions

View File

@@ -7,12 +7,6 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <fqbn> <path-to-i
return 1 return 1
fi fi
ARDUINO_CACHE_DIR="$HOME/.arduino/cache.tmp"
if [ -z "$ARDUINO_BUILD_DIR" ]; then
build_dir="$(dirname $sketch)/build"
else
build_dir="$ARDUINO_BUILD_DIR"
fi
local ide_path=$1 local ide_path=$1
local usr_path=$2 local usr_path=$2
local fqbn=$3 local fqbn=$3
@@ -20,6 +14,15 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <fqbn> <path-to-i
local xtra_opts=$5 local xtra_opts=$5
local win_opts=$6 local win_opts=$6
ARDUINO_CACHE_DIR="$HOME/.arduino/cache.tmp"
if [ -z "$ARDUINO_BUILD_DIR" ]; then
build_dir="$(dirname $sketch)/build"
else
build_dir="$ARDUINO_BUILD_DIR"
fi
echo $sketch
rm -rf "$build_dir" rm -rf "$build_dir"
mkdir -p "$build_dir" mkdir -p "$build_dir"
mkdir -p "$ARDUINO_CACHE_DIR" mkdir -p "$ARDUINO_CACHE_DIR"

View File

@@ -67,7 +67,12 @@ jobs:
Test: Test:
needs: [gen_chunks, Build] needs: [gen_chunks, Build]
name: ${{matrix.chip}}-Test#${{matrix.chunks}} name: ${{matrix.chip}}-Test#${{matrix.chunks}}
runs-on: ESP32 runs-on:
- ESP32
- ESP32-S2
- ESP32-S3
- ESP32-C3
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -87,11 +92,6 @@ jobs:
name: ${{matrix.chip}}-${{matrix.chunks}}.artifacts name: ${{matrix.chip}}-${{matrix.chunks}}.artifacts
path: tests/ path: tests/
- name: Check Artifacts
run: |
ls -R tests
cat tests/*/build/build.options.json
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install -U pip pip install -U pip

View File

@@ -14,7 +14,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: | if: |
github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion != 'skipped' (github.event.workflow_run.conclusion == 'success' ||
(github.event.workflow_run.conclusion == 'failure')
steps: steps:
- name: Download and Extract Artifacts - name: Download and Extract Artifacts
env: env: