Skip to content

Commit

Permalink
GHA NetBSD: ignore vignettes with R code
Browse files Browse the repository at this point in the history
We could also do `cd $GITHUB_WORKSPACE`,
otherwise the `netbsd {0}` shell does not run
insode the workspace.

[ci skip]
  • Loading branch information
gaborcsardi committed Oct 27, 2024
1 parent 03a25ed commit fdf1b91
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/netbsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@ jobs:
ln -s libfontconfig.so /usr/pkg/lib/libfontconfig.so.2
- name: Ignore vignettes
shell: netbsd {0}
shell: Rscript {0}
run: |
sed -i.bak -e '/VignetteBuilder:/,+1d' DESCRIPTION
rm DESCRIPTION.bak
echo '^vignettes$' >> .Rbuildignore
dsc <- readLines("DESCRIPTION")
vb <- grep("VignetteBuilder:", dsc)
if (length(vb) > 0) {
dsc <- dsc[-(vb:(vb+1))]
writeLines(dsc, "DESCRIPTION")
}
cat("^vignettes$", file = ".Rbuildignore", append = TRUE, sep = "")
- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down

0 comments on commit fdf1b91

Please sign in to comment.