diff --git a/.github/workflows/r_macos.yml b/.github/workflows/r_macos.yml index edaab83b..eaff706d 100644 --- a/.github/workflows/r_macos.yml +++ b/.github/workflows/r_macos.yml @@ -31,11 +31,13 @@ # - name: Update Homebrew # run: | # brew update +# # - name: Install pandoc # run: | # for i in {1..3}; do # brew install pandoc && break || sleep 15 # done +# # - name: Set up R ${{ matrix.r-version }} # uses: r-lib/actions/setup-r@v2 # with: @@ -44,11 +46,10 @@ # - name: Install R dependencies # run: | # Rscript -e "install.packages(c('remotes', 'rcmdcheck', 'reticulate', 'renv', 'knitr', 'rmarkdown', 'lsa', 'purrr', 'testthat', 'htmltools'), repos='https://cran.r-project.org')" -# Rscript -e "if (getRversion() >= '4.4.0') remotes::install_version('Matrix', version = '1.5.3')" +# Rscript -e "if (getRversion() >= '4.4.0') remotes::install_version('Matrix', version = '1.5.3') else install.packages('Matrix', type = 'binary')" # Rscript -e "remotes::install_version('htmltools', version = '0.5.8')" # Rscript -e "renv::restore()" # -# # - name: Set up Python # uses: actions/setup-python@v2 # with: @@ -66,6 +67,7 @@ # pip install --upgrade pip # pip install scipy==1.12.0 # pip install flair +# # - name: Remove Python cache files # run: find . -name '*.pyc' -delete # @@ -98,15 +100,13 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Update Homebrew + - name: Update Homebrew and Install gfortran run: | brew update - - - name: Install pandoc - run: | - for i in {1..3}; do - brew install pandoc && break || sleep 15 - done + brew install gcc + echo "FC=$(brew --prefix)/bin/gfortran" >> ~/.R/Makevars + echo "F77=$(brew --prefix)/bin/gfortran" >> ~/.R/Makevars + echo "FLIBS=-L$(brew --prefix)/lib/gcc/current -lgfortran -lquadmath -lm" >> ~/.R/Makevars - name: Set up R ${{ matrix.r-version }} uses: r-lib/actions/setup-r@v2