Skip to content

Commit

Permalink
try setting compilation flags in Makevars
Browse files Browse the repository at this point in the history
  • Loading branch information
Kss2k committed Nov 12, 2024
1 parent 5fda4d8 commit c9d9341
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: R-CMD-CHECK

on:
push:
branches:
Expand All @@ -20,6 +21,15 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v4

# Create Makevars file to override default flags
- name: Set custom Makevars
run: |
echo "CFLAGS = -O2 -Wall" > src/Makevars
echo "CXXFLAGS = -O2 -Wall" >> src/Makevars
echo "FFLAGS = -O2" >> src/Makevars
echo "FCFLAGS = -O2" >> src/Makevars
# Run R CMD CHECK with custom flags
- name: R CMD CHECK
run: |
Rscript -e 'devtools::check(error_on = "warning")'

0 comments on commit c9d9341

Please sign in to comment.