Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelVias committed Sep 5, 2024
1 parent aca4dec commit b352cbd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,22 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
- name: Test package loading
- name: Debug information
run: |
Rscript -e "install.packages('bdrc', repos = NULL, type = 'source')"
pwd
ls -l
R -e "print(.libPaths())"
- name: Check package structure
run: |
ls -R
- name: Build package
run: |
R CMD build .
- name: Check built package
run: |
ls -l *.tar.gz
- name: Install and load package
run: |
PKG_FILE=$(ls -1t *.tar.gz | head -n 1)
R CMD INSTALL ${PKG_FILE}
Rscript -e "library(bdrc); print(ls('package:bdrc'))"
6 changes: 2 additions & 4 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
CXX_STD = CXX11
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -I/usr/local/Cellar/gcc/14.2.0/include
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CXXFLAGS) -L/usr/local/Cellar/gcc/14.2.0/lib/gcc/current -lgfortran -lquadmath -lm

FLIBS=-L/usr/local/Cellar/gcc/14.2.0/lib/gcc/current -lgfortran -lquadmath -lm
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CXXFLAGS)
1 change: 1 addition & 0 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CXX_STD = CXX11
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
USE_CXX14 = yes

0 comments on commit b352cbd

Please sign in to comment.