tinyusb/.circleci/config.yml

40 lines
1.2 KiB
YAML
Raw Normal View History

2024-05-10 12:44:54 +07:00
version: 2.1
2024-05-10 13:00:19 +07:00
setup: true
orbs:
continuation: circleci/continuation@1
2024-05-10 12:44:54 +07:00
jobs:
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
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:
name: Set matrix
command: |
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:
set-matrix:
2024-05-10 12:44:54 +07:00
jobs:
- set-matrix