-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for build from TileDB Core tarball (#627)
* Accomodate build from external tarball * Ensure LDFLAGS does not leak to cmake build, small edits * Also enable s3 when building from source tarball * Ensure default build works * Support download and use of dev.zip from GitHub * Add a new nightly yaml [ci skip] * Turn nightly on (and 'park' ci and windows for a moment) * Run tinytest::test_package after INSTALL step * Set back to default triggers now that nightly works [ci skip] * Add issue create action on failure to nightly job [ci skip] * Update NEWS and increase micro release version [ci skip]
- Loading branch information
1 parent
374269d
commit ec5eb4f
Showing
8 changed files
with
110 additions
and
53 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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: test | ||
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: eddelbuettel |
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
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
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
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
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
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
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