diff --git a/.github/actions/list-HAL-variants/action.yml b/.github/actions/list-HAL-variants/action.yml index 2c53c6b49ee2..355618d2ad1c 100644 --- a/.github/actions/list-HAL-variants/action.yml +++ b/.github/actions/list-HAL-variants/action.yml @@ -13,5 +13,5 @@ runs: - id: compute-matrix shell: bash run: | - matrix_json=$(cat crates.json | jq -Mr -c '{ "pac": (.hal_build_variants | keys ), "toolchain": ["stable", "nightly"] }') + matrix_json=$(cat crates.json | jq -Mr -c '{ "pac": (.hal_variants | keys ), "toolchain": ["stable", "nightly"] }') echo "matrix=${matrix_json}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/build-hal.yml b/.github/workflows/build-hal.yml index 404d4401dabe..20e114111e5e 100644 --- a/.github/workflows/build-hal.yml +++ b/.github/workflows/build-hal.yml @@ -26,7 +26,7 @@ jobs: run: | rustup set profile minimal rustup override set ${{ matrix.toolchain }} - target=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_build_variants["${{matrix.pac}}"].target') + target=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].target') rustup target add ${target} rustup component add clippy @@ -36,14 +36,14 @@ jobs: - name: Build HAL for ${{ matrix.pac }} run: | set -ex - features=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_build_variants["${{matrix.pac}}"].features | join(",")') - target=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_build_variants["${{matrix.pac}}"].target') + features=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].features | join(",")') + target=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].target') cargo build --features=${features} --target=${target} --manifest-path=./hal/Cargo.toml - name: Clippy HAL for ${{ matrix.pac }} if: ${{ matrix.toolchain == 'nightly' }} run: | set -ex - features=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_build_variants["${{matrix.pac}}"].features | join(",")') - target=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_build_variants["${{matrix.pac}}"].target') + features=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].features | join(",")') + target=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].target') cargo clippy --features=${features} --target=${target} --manifest-path=./hal/Cargo.toml diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index 8631ca2c5f8e..93f4ba688421 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -31,11 +31,11 @@ jobs: mkdir -pv "${docs_path}" (cd "$docs_path" && git init && git checkout -b main) - for variant in $(cat crates.json | jq -Mr -c '.hal_doc_variants | keys[]'); + for variant in $(cat crates.json | jq -Mr -c '.hal_variants | keys[]'); do ( - feature_str=$(cat crates.json | jq -Mr --arg variant "${variant}" -c '.hal_doc_variants[$variant].features | join(",")') - target=$(cat crates.json | jq -Mr --arg variant "${variant}" -c '.hal_doc_variants[$variant].target') + feature_str=$(cat crates.json | jq -Mr --arg variant "${variant}" -c '.hal_variants[$variant].features | join(",")') + target=$(cat crates.json | jq -Mr --arg variant "${variant}" -c '.hal_variants[$variant].target') mkdir -pv "${docs_path}/${variant}" cd hal @@ -69,10 +69,10 @@ jobs: echo ' ' >> "${docs_path}/index.html" echo '
' >> "${docs_path}/index.html" - for variant in $(cat crates.json | jq -Mr -c '.hal_doc_variants | keys[]'); + for variant in $(cat crates.json | jq -Mr -c '.hal_variants | keys[]'); do - target=$(cat crates.json | jq -Mr --arg variant "${variant}" -c '.hal_doc_variants[$variant].target') - features_html=$(cat crates.json | jq -Mr --arg variant "${variant}" -c '.hal_doc_variants[$variant].features | map("", . , "") | join(" ")') + target=$(cat crates.json | jq -Mr --arg variant "${variant}" -c '.hal_variants[$variant].target') + features_html=$(cat crates.json | jq -Mr --arg variant "${variant}" -c '.hal_variants[$variant].features | map("", . , "") | join(" ")') echo '