test if quick is working at all

This commit is contained in:
Thomas Göttgens 2024-09-27 10:36:00 +02:00
parent bdb998c763
commit e02a7d1c68

View File

@ -20,8 +20,8 @@ on:
workflow_dispatch:
jobs:
setup-quick:
if: ${{ github.event_name != 'workflow_dispatch' }}
setup:
if: ${{ github.event_name == 'workflow_dispatch' }}
strategy:
fail-fast: false
matrix:
@ -45,41 +45,14 @@ jobs:
stm32: ${{ steps.jsonStep.outputs.stm32 }}
check: ${{ steps.jsonStep.outputs.check }}
setup:
if: ${{ github.event_name == 'workflow_dispatch' }}
strategy:
fail-fast: false
matrix:
arch: [esp32, esp32s3, esp32c3, nrf52840, rp2040, stm32, check]
runs-on: ubuntu-latest
steps:
- id: checkout
uses: actions/checkout@v4
name: Checkout base
- id: jsonStep
run: |
TARGETS=$(./bin/generate_ci_matrix.py ${{matrix.arch}})
echo "$TARGETS"
echo "${{matrix.arch}}=$(jq -cn --argjson environments "$TARGETS" '{board: $environments}')" >> $GITHUB_OUTPUT
outputs:
esp32: ${{ steps.jsonStep.outputs.esp32 }}
esp32s3: ${{ steps.jsonStep.outputs.esp32s3 }}
esp32c3: ${{ steps.jsonStep.outputs.esp32c3 }}
nrf52840: ${{ steps.jsonStep.outputs.nrf52840 }}
rp2040: ${{ steps.jsonStep.outputs.rp2040 }}
stm32: ${{ steps.jsonStep.outputs.stm32 }}
check: ${{ steps.jsonStep.outputs.check }}
check:
needs: [ setup, setup-quick ]
needs: setup
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.check) }}
runs-on: ubuntu-latest
if: |
always()
&& ${{ github.event_name != 'workflow_dispatch' }}
if: ${{ github.event_name != 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v4
- name: Build base
@ -89,8 +62,7 @@ jobs:
run: bin/check-all.sh ${{ matrix.board }}
build-esp32:
needs: [ setup, setup-quick ]
if: always()
needs: setup
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.esp32) }}
@ -99,8 +71,7 @@ jobs:
board: ${{ matrix.board }}
build-esp32-s3:
needs: [ setup, setup-quick ]
if: always()
needs: setup
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.esp32s3) }}
@ -109,8 +80,7 @@ jobs:
board: ${{ matrix.board }}
build-esp32-c3:
needs: [ setup, setup-quick ]
if: always()
needs: setup
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.esp32c3) }}
@ -119,8 +89,7 @@ jobs:
board: ${{ matrix.board }}
build-nrf52:
needs: [ setup, setup-quick ]
if: always()
needs: setup
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.nrf52840) }}
@ -129,8 +98,7 @@ jobs:
board: ${{ matrix.board }}
build-rpi2040:
needs: [ setup, setup-quick ]
if: always()
needs: setup
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.rp2040) }}
@ -139,8 +107,7 @@ jobs:
board: ${{ matrix.board }}
build-stm32:
needs: [ setup, setup-quick ]
if: always()
needs: setup
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.stm32) }}