Skip to content

CI-BuildOnly

CI-BuildOnly #1249

name: CI-BuildOnly
on:
push:
schedule:
- cron: '0 0 * * 1'
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: "44"}
- { os: macos-latest-large, r: 'release' , r_tools: "44"} #MacOs Intel
- { os: macos-latest, r: 'release' , r_tools: "44"} #MacOs Arm64
- { os: windows-latest, r: '4.3.0' , r_tools: "43"}
- { os: macos-latest-large, r: '4.3.0' , r_tools: "43"} #MacOs Intel
- { os: macos-latest, r: '4.3.0', r_tools: "43"} #MacOs Arm64
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
rtools-version: ${{ matrix.config.r_tools }}
- name: Install unixodbc MacOsX
if: contains(matrix.config.os, 'macos-latest')
run: |
brew install unixodbc
BREW_PREFIX=`brew --prefix`
- name: Query dependencies (macOS)
if: contains(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 }}
- name: Report failure Status to Slack channel
id: report-failure-status-slack
# Also run this step in case of failures
if: ${{ github.event_name == 'schedule' && always() }}
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
token: ${{ github.token }}
notification_title: "Nightly build for ${{ matrix.config.os }} / ${{ matrix.config.r }} in {repo} has {status_message}"
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
notify_when: "failure,cancelled,warnings,skipped"
env:
SLACK_WEBHOOK_URL: ${{ secrets.INTEGRATION_TEAM_SLACK_NOTIFICATION_WEBHOOK }}