File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 lib_name : libnode.so.127
3030 nproc_cmd : nproc
3131 # macOS x64 builds
32+ - os : macos-13
33+ platform : mac
34+ arch : x64
35+ compiler : gcc
36+ container : " "
37+ lib_name : libnode.127.dylib
38+ nproc_cmd : sysctl -n hw.ncpu
3239 - os : macos-13
3340 platform : mac
3441 arch : x64
@@ -53,11 +60,21 @@ jobs:
5360 with :
5461 python-version : ' 3.11'
5562
63+ - name : Install GCC (macOS)
64+ if : matrix.platform == 'mac' && matrix.compiler == 'gcc'
65+ run : |
66+ brew install gcc@13
67+ echo "CC=$(brew --prefix gcc@13)/bin/gcc-13" >> $GITHUB_ENV
68+ echo "CXX=$(brew --prefix gcc@13)/bin/g++-13" >> $GITHUB_ENV
69+
5670 - name : Configure and Build
5771 run : |
5872 if [ "${{ matrix.compiler }}" = "gcc" ]; then
59- export CC=gcc
60- export CXX=g++
73+ # CC and CXX already set for macOS GCC via GITHUB_ENV
74+ if [ "${{ matrix.platform }}" != "mac" ]; then
75+ export CC=gcc
76+ export CXX=g++
77+ fi
6178 else
6279 export CC=clang
6380 export CXX=clang++
You can’t perform that action at this time.
0 commit comments