From ae580a3043ca2a93f9cb6cd9f4cef6adaa2d5230 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:48:57 -0400 Subject: [PATCH] [ci/r] Use TileDB-R 0.21.1 binaries (#1738) (#1751) * [ci/r] Use TileDB-R 0.21.1 binaries * CI from 1749 * code-review feedback Co-authored-by: John Kerl --- .github/workflows/r-ci.yml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/r-ci.yml b/.github/workflows/r-ci.yml index 564de26d8d..5216493534 100644 --- a/.github/workflows/r-ci.yml +++ b/.github/workflows/r-ci.yml @@ -41,15 +41,25 @@ jobs: - name: Install BioConductor package SingleCellExperiment run: cd apis/r && tools/r-ci.sh install_bioc SingleCellExperiment - # Given propagation delay for binaries at https://r2u.stat.illinois.edu/ubuntu/pool/dists/jammy/main/ - - name: Install r-universe build of tiledb-r (macOS) - if: ${{ matrix.os == 'macOS-latest' }} - run: cd apis/r && Rscript -e "install.packages('tiledb', repos = c('https://eddelbuettel.r-universe.dev', 'https://cloud.r-project.org'))" - - # Given propagation delay for binaries at https://r2u.stat.illinois.edu/ubuntu/pool/dists/jammy/main/ - - name: Install r-universe build of tiledb-r (linux) - if: ${{ matrix.os != 'macOS-latest' }} - run: cd apis/r && Rscript -e "options(bspm.version.check=TRUE); install.packages('tiledb', repos = c('https://eddelbuettel.r-universe.dev/bin/linux/jammy/4.3/', 'https://cloud.r-project.org'))" + # The next two stanzas are necessary given propagation delay for binaries at + # https://r2u.stat.illinois.edu/ which may lack binaries (for short periods of usually a day) + # when sources have been updated. The default installation could switch to installation from + # sources --- but that would require installing all build dependencies. To see what the most + # recent binary is run e.g. docker run --rm -ti rocker/r2u bash -c 'apt update -qq && + # apt-cache show r-cran-tiledb' Using the r-universe builds (as below) is a suitable fallback + # as they update more frequently than CRAN. + + # Uncomment these next two stanzas as needed whenever we've just released a new tiledb-r for + # which source is available but binaries are not yet: + + #- name: Install r-universe build of tiledb-r (macOS) + # if: ${{ matrix.os == 'macOS-latest' }} + # run: cd apis/r && Rscript -e "install.packages('tiledb', repos = c('https://eddelbuettel.r-universe.dev', 'https://cloud.r-project.org'))" + + # docker run --rm -ti rocker/r2u Rscript -e 'install.packages("tiledb")' + #- name: Install r-universe build of tiledb-r (linux) + # if: ${{ matrix.os != 'macOS-latest' }} + # run: cd apis/r && Rscript -e "options(bspm.version.check=TRUE); install.packages('tiledb', repos = c('https://eddelbuettel.r-universe.dev/bin/linux/jammy/4.3/', 'https://cloud.r-project.org'))" - name: Dependencies run: cd apis/r && tools/r-ci.sh install_all