Skip to content

Commit

Permalink
macos fix for github action: downgrade freetype to install 'ragg' and…
Browse files Browse the repository at this point in the history
… install binary 'units' (#85)

* upgrade freetype

* misunderstood fix

* option --cask

* install file directly

* freetype 2.13.2

* remove --cask option

* disable faulty line

* unlink

* change path to xml2-config

* udunits?

* udunits2

* install units binary
kevinrue authored Sep 1, 2024
1 parent 13f40d2 commit 08a5447
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
@@ -128,7 +128,7 @@ jobs:
run: |
## Enable installing XML from source if needed
brew install libxml2
echo "XML_CONFIG=/usr/local/opt/libxml2/bin/xml2-config" >> $GITHUB_ENV
echo "XML_CONFIG=/opt/homebrew/opt/libxml2/bin/xml2-config" >> $GITHUB_ENV
## Required to install magick as noted at
## https://github.com/r-lib/usethis/commit/f1f1e0d10c1ebc75fd4c18fa7e2de4551fd9978f#diff-9bfee71065492f63457918efcd912cf2
@@ -145,6 +145,17 @@ jobs:
## Required for terra
brew install gdal
## Temporary fix for freetype (https://github.com/r-lib/ragg/issues/170)
#brew install --cask https://raw.githubusercontent.com/Homebrew/homebrew-core/d28afc3bfdb5d24eab02157bfffcc9e17ed6666c/Formula/f/freetype.rb
brew unlink freetype
curl -L https://raw.githubusercontent.com/Homebrew/homebrew-core/3db6dc6c4baf5a75e345f380cc4e8224c1ae5ae0/Formula/f/freetype.rb > freetype.rb && brew install freetype.rb
- name: Install binary units for macOS
if: matrix.config.os == 'macOS-latest'
run: |
install.packages('https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.4/units_0.8-5.tgz')
shell: Rscript {0}

- name: Install Windows system dependencies
if: runner.os == 'Windows'
@@ -179,7 +190,7 @@ jobs:
gha_repos <- if(
.Platform$OS.type == "unix" && Sys.info()["sysname"] != "Darwin"
) c(
"AnVIL" = "https://bioconductordocker.blob.core.windows.net/packages/3.17/bioc",
"AnVIL" = "https://bioconductordocker.blob.core.windows.net/packages/3.20/bioc",
BiocManager::repositories()
) else BiocManager::repositories()

0 comments on commit 08a5447

Please sign in to comment.