From cb97e401433ba0e6944ccddd62cdc87c2c6cced3 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Fri, 8 May 2026 14:06:23 +0200 Subject: [PATCH] [GITHUB] build-linux: Improve reporting -march value (#8362) - Make regex stricter. - Make output more explicit. - Add comments. --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fd77e4c552..8a1a8cdf021 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,9 @@ jobs: - name: Get RosBE build specifics id: get_rosbe_spec run: | - gcc -march=native -Q --help=target | grep "\-march= " | awk '{print $NF}' + # Print actual cpu-type option only. + echo -march = $(gcc -march=native -Q --help=target | grep "\-march= " | awk '{print $NF}') + # Take all options/text into account. echo march-sha=$(gcc -march=native -Q --help=target | sha1sum | awk '{print $1}') >> $GITHUB_OUTPUT echo git-sha=$(git ls-remote https://github.com/zefklop/RosBE.git | grep unix_amd64 | awk '{print $1}') >> $GITHUB_OUTPUT wget https://gist.githubusercontent.com/zefklop/b2d6a0b470c70183e93d5285a03f5899/raw/build_rosbe_ci.sh