Skip to content

Commit 8d5f0f5

Browse files
authored
Add -Werror to CXXFLAGS for dev CI job (#1501)
* add -Werror to CXXFLAGS for dev CI job * implement this in a new yaml file instead * rename file
1 parent 959891b commit 8d5f0f5

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/werror.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Run CI for R using https://eddelbuettel.github.io/r-ci/
2+
3+
name: werror
4+
5+
on:
6+
push:
7+
pull_request:
8+
9+
env:
10+
_R_CHECK_FORCE_SUGGESTS_: "false"
11+
RCPP_CXXFLAGS: "-Werror"
12+
13+
jobs:
14+
ci:
15+
runs-on: ubuntu-latest
16+
container: rocker/drd
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v7
21+
22+
- name: Setup
23+
uses: eddelbuettel/github-actions/r-ci@master
24+
25+
- name: Dependencies
26+
run: ./run.sh install_deps
27+
28+
- name: Set flags
29+
run: mkdir -p ~/.R && echo "CXXFLAGS += $RCPP_CXXFLAGS" >> ~/.R/Makevars
30+
31+
- name: Test
32+
run: ./run.sh run_tests
33+
34+
- name: Logs
35+
run: ./run.sh dump_logs
36+
if: failure()

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2026-09-01 Iñaki Ucar <iucar@fedoraproject.org>
2+
3+
* .github/workflows/werror.yaml: Add new CI file with -Werror enabled
4+
15
2026-08-08 Dirk Eddelbuettel <edd@debian.org>
26

37
* DESCRIPTION (Version, Date): Roll micro version and date

0 commit comments

Comments
 (0)