Add renovate.json #24
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
name: build-artifacts | |
on: push | |
jobs: | |
build-artifacts: | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: windows-latest, r-version: '3.6'} | |
- {os: windows-latest, r-version: '4.0'} | |
- {os: ubuntu-20.04, r-version: '4.0'} | |
runs-on: ${{ matrix.config.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up R ${{ matrix.config.r-version }} | |
uses: r-lib/actions/setup-r@v1 | |
with: | |
r-version: ${{ matrix.config.r-version }} | |
- name: Query dependencies | |
run: | | |
install.packages('remotes') | |
shell: Rscript {0} | |
- name: Install system dependencies | |
if: runner.os == 'Linux' | |
run: | | |
while read -r cmd | |
do | |
eval sudo $cmd | |
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))') | |
sudo apt install libcurl4-openssl-dev | |
- name: Install dependencies | |
run: | | |
install.packages(c("rcmdcheck", "httpuv", "devtools")) | |
remotes::install_deps(dependencies = TRUE) | |
shell: Rscript {0} | |
- name: Check | |
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") | |
shell: Rscript {0} | |
- name: Build source (Linux) | |
if: runner.os == 'Linux' | |
run: devtools::build(binary = FALSE, path = "dist") | |
shell: Rscript {0} | |
- name: Build windows binaries | |
if: runner.os == 'Windows' | |
run: devtools::build(binary = TRUE, path = "dist") | |
shell: Rscript {0} | |
- name: Get package version | |
run: | | |
echo "PKGVERSION=0.4.1" >> $GITHUB_ENV | |
- name: Upload artifacts - Binaire Windows | |
if: runner.os == 'Windows' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: doremifasolData_${PKGVERSION}_r${{ matrix.config.r-version }}.zip | |
path: dist/ | |
- name: Upload artifacts - source | |
if: runner.os == 'Linux' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: doremifasolData_${PKGVERSION}_r${{ matrix.config.r-version }}.tar.gz | |
path: dist/ |