attempt to fix Github Actions #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is my own action yaml file and it is NOT TESTED. Use at your own risk! | |
name: R CMD check | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: build on ubuntu-latest | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
R: [ '4.2.0' ] | |
steps: | |
- uses: actions/checkout@master | |
- name: Install R-related dependencies | |
run: | | |
sudo apt-get install libcurl4-openssl-dev | |
sudo apt-get install libgit2-dev | |
sudo apt-get install libssh2-1-dev | |
- name: Set up R ${{ matrix.R }} | |
uses: r-lib/actions/setup-r@v1 | |
with: | |
r-version: ${{ matrix.R }} | |
- name: Install dependencies | |
run: | | |
install.packages(c("remotes", "devtools")) | |
devtools::install_dev_deps(pkg = ".", dependencies = TRUE) | |
shell: Rscript {0} | |
- name: Check dependencies with makefile | |
run: make deps | |
- name: Running make - documentation | |
run: make clean docs | |
- name: Running make - building without manual | |
run: make build-noman | |
- name: Running make - check without CRAN | |
run: make check |