Skip to content

Commit 665e8fa

Browse files
committed
.github/workflows/R.yml (coverage): Disable LTO. Set NOT_CRAN=true.
1 parent 1245b04 commit 665e8fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/R.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153

154154
- name: Test coverage
155155
env:
156-
NOT_CRAN: false
156+
NOT_CRAN: true
157157
run: |
158158
exclude_pattern = rex::rex(or(group(or("#", "//"), any_spaces, "nocov"),
159159
group(or("ASSUME", "unreachable"), maybe(" "), "("),
@@ -162,7 +162,7 @@ jobs:
162162
options(covr.gcov_additional_paths="c",
163163
covr.filter_non_package=FALSE,
164164
covr.exclude_pattern=exclude_pattern)
165-
coverage <- withr::with_makevars(c(MOOCORE_DEBUG="1", LTO_OPT=""),
165+
coverage <- withr::with_makevars(c(MOOCORE_DEBUG="1", LTO_OPT="-fno-lto"),
166166
covr::package_coverage(type="all", quiet=FALSE, clean=FALSE,
167167
commentDonttest = FALSE, commentDontrun = FALSE, flags="R",
168168
relative_path=normalizePath(file.path(getwd(), "..")),

0 commit comments

Comments
 (0)