Skip to content

Commit

Permalink
Merge pull request #61 from eddelbuettel/feature/github_actions
Browse files Browse the repository at this point in the history
add GitHub Actions
  • Loading branch information
eddelbuettel committed Dec 9, 2020
2 parents 8826fad + 254c019 commit 237449d
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Run CI for R using https://eddelbuettel.github.io/r-ci/

name: ci

on:
push:
pull_request:

env:
USE_BSPM: "true"
_R_CHECK_FORCE_SUGGESTS_: "false"

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: gcc-7
cxx: g++-7
cc: gcc-7
- name: gcc-8
cxx: g++-8
cc: gcc-8
- name: gcc-9
cxx: g++-9
cc: gcc-9
- name: gcc-10
cxx: g++-10
cc: gcc-10
coverage: true

steps:
- uses: actions/checkout@v2

- name: Bootstrap
run: |
curl -OLs https://eddelbuettel.github.io/r-ci/run.sh
chmod 0755 run.sh
./run.sh bootstrap
- name: Compiler
run: |
./run.sh install_aptget ${{ matrix.cxx }}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.cc }} 60 --slave /usr/bin/g++ g++ /usr/bin/${{matrix.cxx }}
g++ --version
- name: Dependencies
run: ./run.sh install_all

- name: Test
run: ./run.sh run_tests

- name: Coverage
if: ${{ matrix.coverage }}
run: ./run.sh coverage

0 comments on commit 237449d

Please sign in to comment.