Commit b165e1b441 for openssl.org
commit b165e1b441bd4aa38f3bc7d85111083eb08811ea
Author: Mounir IDRASSI <mounir.idrassi@idrix.fr>
Date: Wed Sep 9 09:16:22 2026 +0900
CI: fix capability assignments in cross compile workflows
YAML folds the newline in the capability assignment into a space, leaving
a literal backslash in the exported value. AArch64 reads the resulting
value as zero, while s390x rejects it and ignores the requested mask.
Use a literal YAML block in each affected workflow and keep the assignment
on one shell line. Quote the GITHUB_ENV path as well.
Assisted-by: Codex:gpt-6-astra
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Merge-date: Tue Sep 15 09:37:03 2026
Merged-from: https://github.com/openssl/openssl/pull/32751
diff --git a/.github/workflows/aarch64-more-cross-compiles.yml b/.github/workflows/aarch64-more-cross-compiles.yml
index 1d0a3d5926..10858433f3 100644
--- a/.github/workflows/aarch64-more-cross-compiles.yml
+++ b/.github/workflows/aarch64-more-cross-compiles.yml
@@ -201,8 +201,8 @@ jobs:
- name: Set OpenSSL caps environment
if: matrix.platform.opensslcapsname != ''
- run: echo "OPENSSL_${{ matrix.platform.opensslcapsname }}=\
- ${{ matrix.platform.opensslcaps }}" >> $GITHUB_ENV
+ run: |
+ echo "OPENSSL_${{ matrix.platform.opensslcapsname }}=${{ matrix.platform.opensslcaps }}" >> "$GITHUB_ENV"
- name: get cpu info
run: cat /proc/cpuinfo
diff --git a/.github/workflows/cross-compiles.yml b/.github/workflows/cross-compiles.yml
index eb9e1e749a..67483113f3 100644
--- a/.github/workflows/cross-compiles.yml
+++ b/.github/workflows/cross-compiles.yml
@@ -228,8 +228,8 @@ jobs:
- name: Set OpenSSL caps environment
if: matrix.platform.opensslcapsname != ''
- run: echo "OPENSSL_${{ matrix.platform.opensslcapsname }}=\
- ${{ matrix.platform.opensslcaps }}" >> $GITHUB_ENV
+ run: |
+ echo "OPENSSL_${{ matrix.platform.opensslcapsname }}=${{ matrix.platform.opensslcaps }}" >> "$GITHUB_ENV"
- name: get cpu info
if: matrix.platform.tests != 'none'
diff --git a/.github/workflows/riscv-more-cross-compiles.yml b/.github/workflows/riscv-more-cross-compiles.yml
index d6b0b491de..d191f2b6c9 100644
--- a/.github/workflows/riscv-more-cross-compiles.yml
+++ b/.github/workflows/riscv-more-cross-compiles.yml
@@ -326,8 +326,8 @@ jobs:
- name: Set OpenSSL caps environment
if: matrix.platform.opensslcapsname != ''
- run: echo "OPENSSL_${{ matrix.platform.opensslcapsname }}=\
- ${{ matrix.platform.opensslcaps }}" >> $GITHUB_ENV
+ run: |
+ echo "OPENSSL_${{ matrix.platform.opensslcapsname }}=${{ matrix.platform.opensslcaps }}" >> "$GITHUB_ENV"
- name: get cpu info
run: cat /proc/cpuinfo