Skip to content

Commit b6fcc66

Browse files
committed
find and use gcc
1 parent 7d989be commit b6fcc66

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/posix.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ jobs:
9999
brew reinstall gcc
100100
brew install coreutils
101101
brew install llvm
102-
ls /usr/local/Cellar/gcc
103-
echo "/usr/local/Cellar/gcc/14.2.0_1/bin" >>$GITHUB_PATH
104-
echo "CC=/usr/local/Cellar/gcc/14.2.0_1/bin/gcc-14" >> $GITHUB_ENV;
102+
ver=$(ls /usr/local/Cellar/gcc)
103+
cc=$(ls /usr/local/Cellar/gcc/$ver/bin/gcc-1*)
104+
echo "/usr/local/Cellar/gcc/$ver/bin" >>$GITHUB_PATH
105+
echo "CC=$cc" >> $GITHUB_ENV;
105106
echo "RANLIB=/usr/bin/ranlib" >> $GITHUB_ENV;
106107
107108

0 commit comments

Comments
 (0)