Skip to content

adding build in github actions #2

adding build in github actions

adding build in github actions #2

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R-CMD-check
on:
push:
branches: [ master, fixing-workflow ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r-version }})
strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r-version: 'release'}
- {os: windows-latest, r-version: 'release'}
- {os: ubuntu-18.04, r-version: 'devel'}
- {os: ubuntu-18.04, r-version: 'release'}
- {os: ubuntu-18.04, r-version: 'oldrel'}
steps:
- uses: actions/checkout@v2
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.r-version }}
- uses: r-lib/actions/setup-pandoc@v1
- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: sudo apt-get install -y libcurl4-openssl-dev
- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: rcmdcheck
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
shell: Rscript {0}
- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-r${{ matrix.config.r-version }}-results
path: check