Skip to content

matrix-test

matrix-test #1

Workflow file for this run

name: matrix-test
on:
- workflow_dispatch
# - push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# JOB ######################################################################################################################################
list-versions-REAL:
# 'Get a list of latest versions of micropython'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: ./.github/actions/get-mpversions
id: dynamic
- run: echo ${{ steps.dynamic.outputs.json }}
outputs:
json: ${{ steps.dynamic.outputs.json }}
list-versions:
# 'Get a list of latest versions of micropython'
runs-on: ubuntu-latest
steps:
- run: echo faking it
outputs:
json: '["preview", "stable", "v1.22.2","v1.21.0"]'
list-boards:
# 'Get a list of latest versions of micropython'
runs-on: ubuntu-latest
steps:
- run: echo faking it
outputs:
json: '["SEEED_WIO_TERMINAL", "RPI_PICO_W", "ESP32_GENERIC"]'
include: '[{"board": "SEEED_WIO_TERMINAL", "serialport": "COM10"},{"board": "ESP32_GENERIC", "serialport": "COM3", "variant": "OTA"}]'
# JOB ######################################################################################################################################
job20:
runs-on: ubuntu-latest
needs:
- list-versions
- list-boards
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.list-versions.outputs.json) }}
include: ${{ fromJSON(needs.list-boards.outputs.include) }}
variant: []

Check failure on line 61 in .github/workflows/matrix-test.yml

View workflow run for this annotation

GitHub Actions / matrix-test

Invalid workflow file

The workflow is not valid. .github/workflows/matrix-test.yml (Line: 61, Col: 18): Matrix vector 'variant' does not contain any values
# board: ${{ fromJSON(xx needs.list-boards.outputs.json) }}
# exclude:
# - version: preview
# variant: OTA
# include:
# - board: ESP32_GENERIC
# variant: OTA
# - board: ESP32_GENERIC
# variant: SPIRAM
name: "Run ${{ matrix.version }} : ${{ matrix.serialport }} ${{ matrix.board }}-${{ matrix.variant }}"
steps:
- name: Flash ${{ matrix.board }}
run: |
echo Flash ${{ matrix.version }} ${{ matrix.serialport }} ${{ matrix.board }} ${{ matrix.variant }}
# JOB ######################################################################################################################################
# job10:
# runs-on: ubuntu-latest
# outputs:
# json: ${{ steps.set-matrix.outputs.json }}
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python (most platforms)
# uses: actions/setup-python@v5
# with:
# python-version: "3.11"
# - run: python3 .github/workflows/make_matrix.py
# id: set-matrix
# # JOB ######################################################################################################################################
# job15:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# max-parallel: 1
# matrix:
# platform: [x86, x64]
# configuration: [Debug, Release]
# variant: [dev, standard]
# visualstudio: ["2017", "2019", "2022"]
# include:
# - visualstudio: "2017"
# runner: windows-latest
# vs_version: "[15, 16]"
# - visualstudio: "2019"
# runner: windows-2019
# vs_version: "[16, 17]"
# - visualstudio: "2022"
# runner: windows-2022
# vs_version: "[17, 18]"
# # trim down the number of jobs in the matrix
# exclude:
# - variant: standard
# configuration: Debug
# - visualstudio: "2019"
# configuration: Debug
# steps:
# - name: Run a matrix ${{ matrix.runner}} ${{ matrix.platform}} ${{ matrix.configuration}}
# run: echo ${{ matrix.runner}} ${{ matrix.platform}} ${{ matrix.configuration}} ${{ matrix.variant}} ${{ matrix.visualstudio}} ${{ matrix.vs_version}}
# ########################################################################################################################################
# list-versions-cs2:
# # 'Get a matrix for the latest versions of micropython'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 1
# - uses: ./.github/actions/get-mpversions
# id: dynamic
# outputs:
# versions: ${{ steps.dynamic.outputs.versions }}
# ########################################################################################################################################
# job40:
# needs: list-versions-cs
# runs-on: self-hosted
# strategy:
# matrix: ${{ fromJSON(needs.list-versions-cs.outputs.versions) }}
# max-parallel: 1
# # matrix:
# # version: [preview, v1.22.2]
# steps:
# - run: |
# - echo ${{ matrix.version }}