From d9f755e3ad3d6fa9c6415c31ae04884905c34970 Mon Sep 17 00:00:00 2001 From: Neclow Date: Mon, 11 May 2026 13:36:13 +0000 Subject: [PATCH] ci(r): skip Suggests in CD R builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CD jobs only build the binary artifact (rextendr::document + devtools::build), they don't run tests, examples, or vignettes — so Suggests (testthat, ape, TreeDist) aren't needed. The default behavior of setup-r-dependencies was installing them anyway, which started failing when TreeDist 2.12.0 hit a linker error building from source on R 4.6.0 / Ubuntu 22.04 / gcc 11. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/cd-r.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cd-r.yaml b/.github/workflows/cd-r.yaml index 8cc3722..3181833 100644 --- a/.github/workflows/cd-r.yaml +++ b/.github/workflows/cd-r.yaml @@ -43,6 +43,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: working-directory: ${{ env.R_PACKAGE_DIR }} + dependencies: '"hard"' extra-packages: | any::devtools - name: Install rextendr @@ -92,6 +93,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: working-directory: ${{ env.R_PACKAGE_DIR }} + dependencies: '"hard"' extra-packages: | any::devtools - name: Install rextendr @@ -137,6 +139,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: working-directory: ${{ env.R_PACKAGE_DIR }} + dependencies: '"hard"' extra-packages: | any::devtools - name: Install rextendr