Skip to content

CI-BuildOnly

CI-BuildOnly #728

name: CI-BuildOnly
on:
push:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ${{ matrix.config.os }}
name: Build for ${{ matrix.config.os }}, r=${{ matrix.config.r }}
strategy:
fail-fast: false
matrix:
config:
- { os: windows-latest, r: 'release' , r_tools: "42"}
- { os: macOS-latest, r: 'release' , r_tools: "42"}
- { os: windows-latest, r: '4.1.0' , r_tools: "40"}
- { os: macOS-latest, r: '4.1.0' , r_tools: "40"}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
rtools-version: ${{ matrix.config.r_tools }}
- name: Install openssl MacOsX
if: matrix.config.os == 'macOS-latest'
run: |
brew install openssl
BREW_PREFIX=`brew --prefix`
- name: Query dependencies (macOS)
if: matrix.config.os == 'macOS-latest'
run: |
install.packages("RODBC")
install.packages("DBI")
install.packages("devtools")
shell: Rscript {0}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Query dependencies (windows)
if: matrix.config.os == 'windows-latest'
run: |
options(pkgType = "win.binary")
install.packages("RODBC")
install.packages("DBI")
install.packages("devtools")
shell: Rscript {0}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
devtools::install()
shell: Rscript {0}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}