-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (42 loc) · 1.5 KB
/
nightly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: nightly
on:
schedule:
- cron: "21 01 * * *"
workflow_dispatch:
# push:
jobs:
dev:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
steps:
- uses: actions/checkout@v4
- name: SessionInfo
run: Rscript -e 'sessionInfo()'
- name: System Dependencies
# this particular package needs cmake and curl and git to build
run: apt update -qq && apt install --yes --no-install-recommends cmake curl git
- name: Package Dependencies
run: Rscript -e 'remotes::install_deps(".", dependencies=TRUE)'
- name: Build Package
run: R CMD build --no-build-vignettes --no-manual .
- name: Install Package
# running an install step gives better logging on standard out than R CMD check which tucks this away
run: R CMD INSTALL --configure-args="--with-download=https://github.com/TileDB-Inc/TileDB/archive/refs/heads/dev.zip" $(ls -1tr *.tar.gz | tail -1)
- name: Run Tests
# given that the package is installed and uses tinytest, we can easily run its tests
run: Rscript -e 'tinytest::test_package("tiledb")'
create_issue_on_fail:
permissions:
issues: write
runs-on: ubuntu-latest
needs: dev
if: failure() || cancelled()
steps:
- uses: actions/checkout@v4
- name: Create Issue if Build Fails
uses: TileDB-Inc/github-actions/open-issue@main
with:
name: Nightly Dev Build
label: bug,nightly
assignee: ihnorton