Skip to content

Commit 6e281d2

Browse files
Merge pull request #15 from theseus-rs/fix-cpu-arch-test
fix: correct cpu architecture test
2 parents b1d9a11 + f230791 commit 6e281d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ jobs:
387387
postgres_file="$INSTALL_DIRECTORY/bin/postgres"
388388
389389
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
390-
cpu_architecture=$(readelf --file-header "$postgres_file" | grep 'Machine:' | sed -e 's/ *Machine:\ *//g')
390+
cpu_architecture=$(readelf --file-header "$postgres_file" | grep 'Machine:')
391391
else
392-
cpu_architecture=$(file "$postgres_file" | awk '{print $5}')
392+
cpu_architecture=$(file "$postgres_file")
393393
fi
394394
395395
echo "CPU_ARCHITECTURE=$cpu_architecture" | tee -a $GITHUB_ENV

0 commit comments

Comments
 (0)