2024-05-10 12:44:54 +07:00
|
|
|
version: 2.1
|
2024-05-10 13:00:19 +07:00
|
|
|
|
2024-08-13 23:57:01 +07:00
|
|
|
setup: true
|
|
|
|
orbs:
|
|
|
|
continuation: circleci/continuation@1
|
2024-05-14 12:44:36 +07:00
|
|
|
|
2024-05-10 12:44:54 +07:00
|
|
|
jobs:
|
2024-08-13 23:57:01 +07:00
|
|
|
set-matrix:
|
|
|
|
executor: continuation/default
|
2024-05-10 12:44:54 +07:00
|
|
|
docker:
|
2024-05-10 13:00:19 +07:00
|
|
|
- image: cimg/base:current
|
2024-08-13 23:57:01 +07:00
|
|
|
resource_class: small
|
2024-05-10 12:44:54 +07:00
|
|
|
steps:
|
2024-05-10 13:00:19 +07:00
|
|
|
- checkout
|
2024-05-10 12:44:54 +07:00
|
|
|
- run:
|
2024-08-13 23:57:01 +07:00
|
|
|
name: Set matrix
|
2024-05-15 16:20:01 +07:00
|
|
|
command: |
|
2024-08-13 23:57:01 +07:00
|
|
|
MATRIX_JSON=$(python .github/workflows/ci_set_matrix.py)
|
|
|
|
echo "MATRIX_JSON=$MATRIX_JSON"
|
|
|
|
|
|
|
|
TOOLCHAIN_LIST=("arm-clang" "arm-gcc")
|
|
|
|
for toolchain in "${TOOLCHAIN_LIST[@]}"; do
|
|
|
|
FAMILY=$(echo $MATRIX_JSON | jq -r ".\"$toolchain\".family")
|
|
|
|
echo "${toolchain}_FAMILY=$FAMILY"
|
|
|
|
echo " - build:" >> .circleci/config2.yml
|
|
|
|
echo " matrix:" >> .circleci/config2.yml
|
|
|
|
echo " parameters:" >> .circleci/config2.yml
|
|
|
|
echo " toolchain: ['$toolchain']" >> .circleci/config2.yml
|
|
|
|
echo " build-system: ['cmake']" >> .circleci/config2.yml
|
|
|
|
echo " family: $FAMILY" >> .circleci/config2.yml
|
|
|
|
done
|
|
|
|
|
|
|
|
- continuation/continue:
|
|
|
|
configuration_path: .circleci/config2.yml
|
2024-05-10 13:00:19 +07:00
|
|
|
|
2024-05-10 12:44:54 +07:00
|
|
|
workflows:
|
2024-08-13 23:57:01 +07:00
|
|
|
set-matrix:
|
2024-05-10 12:44:54 +07:00
|
|
|
jobs:
|
2024-08-13 23:57:01 +07:00
|
|
|
- set-matrix
|