Skip to content

Commit

Permalink
Build vignettes and Include tests in Binary packages (#40)
Browse files Browse the repository at this point in the history
* Update test-coverage.yaml

* Update test-coverage.yaml

* always checkout latest commit on branch

* force ref for all worklows

* Build vignettes in binary packages

* include tests in binary packages

* remove redundant comma

* Skip vignettes building during check
  • Loading branch information
Felixmil authored Aug 19, 2024
1 parent f0be36e commit 24c77b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/R-CMD-check-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
args: 'c("--no-manual", "--no-vignettes")'
build_args: 'c("--no-manual", "--no-build-vignettes")'
error-on: 'c("error")'

- name: Build package
if: ${{ success() }}
run: |
output_dir <- file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "built_package")
dir.create(output_dir)
devtools::build(binary = TRUE, path = output_dir)
# first run build() to get a bundle package (that includes rendered vignettes), then create binary.
devtools::build(devtools::build(), binary = TRUE, path = output_dir, args=c("--preclean", "--install-tests"))
shell: Rscript {0}

- name: Get package name, version and R versions and store in environment
Expand Down

0 comments on commit 24c77b4

Please sign in to comment.