Merge branch 'master' of github.com:eblondel/zen4R #213
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
# Build | |
name: Build | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
name: R ${{ matrix.config.r }} | ${{ matrix.config.os }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
#- {os: macos-latest, r: 'release'} | |
#- {os: windows-latest, r: 'release'} | |
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | |
#- {os: ubuntu-latest, r: 'release'} | |
#- {os: ubuntu-latest, r: 'oldrel-1'} | |
env: | |
ZENODO_SANDBOX_TOKEN: ${{ secrets.ZENODO_SANDBOX_TOKEN }} | |
PKG_SYSREQS: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
#R Set-up | |
- name: Set up R ${{ matrix.config.r }} | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
#Install dependencies on Linux | |
- name: Install dependencies on Linux | |
if: runner.os == 'Linux' | |
run: sudo apt-get install -y make libsodium-dev libicu-dev libxml2-dev libssl-dev pandoc librdf0-dev libnode-dev libcurl4-gnutls-dev | |
#Install dependencies | |
- name: Install dependencies | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rcmdcheck, any::XML | |
needs: check | |
#Check R Package | |
- name: Check R package | |
uses: r-lib/actions/check-r-package@v2 | |
with: | |
artifact-name: zen4R_r-${{ matrix.config.r }}_${{ matrix.config.os }}-results |