Skip to content

Commit

Permalink
Add system dependencies 🔨
Browse files Browse the repository at this point in the history
  • Loading branch information
serkor1 committed Jan 6, 2025
1 parent 88be5b6 commit 0b9717d
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/macos-check-gcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,19 @@ jobs:
if: runner.os == 'macOS'
run: |
brew update
brew install gcc
brew install pkg-config pcre2 xz gmp gsed
brew install \
gcc \
pkg-config \
pcre2 \
xz \
bzip2 \
zlib \
gmp \
openssl \
curl \
gsed \
libffi
brew install --cask xquartz
- name: Set gcc as Default Compiler on macOS
Expand All @@ -62,15 +73,16 @@ jobs:
tar xzf R-4.4.2.tar.gz
cd R-4.4.2
export CPPFLAGS="-I/opt/X11/include"
export LDFLAGS="-L/opt/X11/lib"
export CPPFLAGS="-I/opt/X11/include -I/usr/local/include"
export LDFLAGS="-L/opt/X11/lib -L/usr/local/lib"
./configure \
--prefix=/usr/local \
--enable-R-shlib \
--enable-openmp \
--with-blas \
--with-lapack \
--with-x=yes \
CC=$(brew --prefix gcc)/bin/gcc-${GCC_VERSION} \
CXX=$(brew --prefix gcc)/bin/g++-${GCC_VERSION} \
FC=$(brew --prefix gcc)/bin/gfortran-${GCC_VERSION} \
Expand Down

0 comments on commit 0b9717d

Please sign in to comment.