Skip to content

Commit 22fe38e

Browse files
committed
add ci runner
1 parent a72a27c commit 22fe38e

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Run CI for R using https://eddelbuettel.github.io/r-ci/
2+
3+
name: ci
4+
5+
on:
6+
push:
7+
pull_request:
8+
9+
env:
10+
USE_BSPM: "true"
11+
_R_CHECK_FORCE_SUGGESTS_: "false"
12+
13+
jobs:
14+
ci:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
include:
19+
- name: release
20+
cntr: rcpp/ci
21+
r: R
22+
- name: r-3.6
23+
cntr: rcpp/ci-3.6
24+
r: R
25+
- name: r-3.5
26+
cntr: rcpp/ci-3.5
27+
r: R
28+
- name: dev
29+
cntr: rcpp/ci-dev
30+
r: RD
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- name: Bootstrap
36+
run: |
37+
curl -OLs https://eddelbuettel.github.io/r-ci/run.sh
38+
chmod 0755 run.sh
39+
./run.sh bootstrap
40+
41+
- name: Container
42+
run: |
43+
docker pull ${{ matrix.cntr }}
44+
docker run --rm -i -v ${PWD}:/mnt -w /mnt ${{ matrix.cntr }} ${{ matrix.r }} -q -e 'sessionInfo()'
45+
46+
- name: Build
47+
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt ${{ matrix.cntr }} ${{matrix.r }} CMD build --no-build-vignettes --no-manual .
48+
49+
- name: Check
50+
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt ${{ matrix.cntr }} ${{ matrix.r }} CMD check --no-vignettes --no-manual Rcpp_*.tar.gz

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2020-12-16 Dirk Eddelbuettel <[email protected]>
2+
3+
* .github/workflows/ci.yaml: Add container-based CI runner
4+
15
2020-11-06 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION: More URL updates, e.g. http -> https

0 commit comments

Comments
 (0)