Open bertcarnell opened 4 months ago
Workaround:
- uses: r-hub/actions/checkout@v1
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
- uses: r-hub/actions/setup-deps@v1
if: matrix.config.label != 'atlas' && matrix.config.label != 'gcc13' && matrix.config.label != 'mkl'
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
pak-version: stable
- name: cachem replacement
if: matrix.config.label == 'atlas' || matrix.config.label == 'gcc13' || matrix.config.label == 'mkl'
run: |
yum install -y gmp-devel pandoc texlive
Rscript -e 'install.packages(c("rcmdcheck", "knitr", "rmarkdown", "Rcpp", "testthat", "DoE.base"), repos = "https://cran.case.edu")'
- name: Bad CXXFLAGS for atlas
if: matrix.config.label == 'atlas'
# throws a warning on non-portable compilation flags
# Can't set _R_CHECK_COMPILATION_FLAGS_=FALSE because --as-cran resets it
# instead, allow for the flags that are a problem
run: |
echo '_R_CHECK_COMPILATION_FLAGS_KNOWN_="-Werror=format-security -Werror=implicit-function-declaration -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3"' >> $GITHUB_ENV
- uses: r-hub/actions/run-check@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
I cannot reproduce that, it is all fine with a vanilla R-hub v2 workflow: https://github.com/gaborcsardi/lhs/actions/runs/9255316046/job/25460249197
This error reproduces consistently in my github action, but not in a bare container.
Snippet of error in github action: https://github.com/bertcarnell/lhs/actions/runs/9147268987/job/25148473610
Attempt to reproduce the error in a bare container, outside of github actions, but this was successful