Skip to content

Commit cb97e40

Browse files
[GITHUB] build-linux: Improve reporting -march value (reactos#8362)
- Make regex stricter. - Make output more explicit. - Add comments.
1 parent bc83700 commit cb97e40

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
- name: Get RosBE build specifics
2121
id: get_rosbe_spec
2222
run: |
23-
gcc -march=native -Q --help=target | grep "\-march= " | awk '{print $NF}'
23+
# Print actual cpu-type option only.
24+
echo -march = $(gcc -march=native -Q --help=target | grep "\-march= " | awk '{print $NF}')
25+
# Take all options/text into account.
2426
echo march-sha=$(gcc -march=native -Q --help=target | sha1sum | awk '{print $1}') >> $GITHUB_OUTPUT
2527
echo git-sha=$(git ls-remote https://github.com/zefklop/RosBE.git | grep unix_amd64 | awk '{print $1}') >> $GITHUB_OUTPUT
2628
wget https://gist.githubusercontent.com/zefklop/b2d6a0b470c70183e93d5285a03f5899/raw/build_rosbe_ci.sh

0 commit comments

Comments
 (0)