-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
820 additions
and
629 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 @@ | ||
*.html |
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,20 @@ | ||
# commits can contain win, rhub or deploy text for specific actions | ||
name: Check-win-builder | ||
on: push | ||
jobs: | ||
|
||
win-builder-checks: | ||
runs-on: ubuntu-18.04 | ||
container: rocker/tidyverse:latest | ||
if: "!contains(github.event.commits[0].message, '[skip other]')" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Send package to win-builder | ||
shell: Rscript {0} | ||
run: | | ||
if (!require("devtools")) install.packages('devtools', repos = 'http://cran.rstudio.com') | ||
devtools::check_win_devel() | ||
devtools::check_win_oldrelease() | ||
devtools::check_win_release() |
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,96 @@ | ||
# commits can contain win, rhub or deploy text for specific actions | ||
name: Check | ||
on: push | ||
jobs: | ||
check-r-verse-latest: | ||
runs-on: ubuntu-18.04 | ||
container: rocker/verse:latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@main | ||
|
||
- name: Install dependencies | ||
shell: Rscript {0} | ||
run: | | ||
remotes::install_deps(dependencies = TRUE) | ||
- name: Check 🔍 | ||
shell: Rscript {0} | ||
run: | | ||
devtools::check(cran = TRUE, vignettes = TRUE) | ||
check-r-verse-devel: | ||
runs-on: ubuntu-18.04 | ||
container: rocker/verse:devel | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@main | ||
|
||
- name: Install dependencies | ||
shell: Rscript {0} | ||
run: | | ||
remotes::install_deps(dependencies = TRUE) | ||
- name: Check 🔍 | ||
shell: Rscript {0} | ||
run: | | ||
devtools::check(cran = TRUE, vignettes = TRUE) | ||
check-r-devel-san: | ||
runs-on: ubuntu-18.04 | ||
container: rocker/r-devel-san | ||
steps: | ||
- name: Checkout repository 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
shell: Rscript {0} | ||
run: | | ||
install.packages(c("Rcpp", "knitr", "rmarkdown", "tinytest", "rcmdcheck")) | ||
- name: Check 🔍 | ||
shell: Rscript {0} | ||
run: | | ||
rcmdcheck::rcmdcheck( | ||
args = c("--as-cran", "--ignore-vignettes"), | ||
build_args = "--no-build-vignettes", | ||
error_on = "warning" | ||
) | ||
check-r-devel-ubsan-clang: | ||
runs-on: ubuntu-18.04 | ||
container: rocker/r-devel-ubsan-clang | ||
steps: | ||
- name: Checkout repository 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
shell: Rscript {0} | ||
run: | | ||
install.packages(c("Rcpp", "knitr", "rmarkdown", "tinytest", "rcmdcheck")) | ||
- name: Check 🔍 | ||
shell: Rscript {0} | ||
run: | | ||
rcmdcheck::rcmdcheck( | ||
args = c("--as-cran", "--ignore-vignettes"), | ||
build_args = "--no-build-vignettes", | ||
error_on = "warning" | ||
) | ||
check-r-verse-3-6: | ||
runs-on: ubuntu-18.04 | ||
container: rocker/verse:3.6.3 | ||
steps: | ||
- name: Checkout repository 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
shell: Rscript {0} | ||
run: | | ||
remotes::install_deps(dependencies = TRUE) | ||
- name: Check 🔍 | ||
shell: Rscript {0} | ||
run: | | ||
devtools::check(cran = TRUE, vignettes = TRUE) |
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,59 @@ | ||
name: Main | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
jobs: | ||
pkgdown: | ||
runs-on: ubuntu-latest | ||
# Only restrict concurrency for non-PR jobs | ||
concurrency: | ||
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} | ||
env: | ||
GITHUB_PAT: ${{ secrets.GH_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::pkgdown, local::. | ||
needs: website | ||
|
||
- name: Build site | ||
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) | ||
shell: Rscript {0} | ||
|
||
- name: Deploy Docs 🚀 | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
publish_dir: docs | ||
|
||
release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare release vars | ||
run: | | ||
echo "PKGNAME=$(sed -n 's/Package: *\([^ ]*\)/\1/p' DESCRIPTION)" >> $GITHUB_ENV | ||
echo "PKGVERS=$(sed -n 's/Version: *\([^ ]*\)/\1/p' DESCRIPTION)" >> $GITHUB_ENV | ||
echo "$(sed -n '2,/^$/p' NEWS.md)" > news.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: "v${{ env.PKGVERS }}" | ||
name: "${{ env.PKGNAME }} ${{ env.PKGVERS }}" | ||
body_path: news.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # This token is provided by Actions, you do not need to create your own token |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
CXX_STD = CXX11 | ||
PKG_CPPFLAGS = -I../inst/include |
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
PKG_CPPFLAGS = -I../inst/include | ||
CXX_STD = CXX11 | ||
CXX11FLAGS += -std=c++1y | ||
PKG_CPPFLAGS = -I../inst/include |
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
Oops, something went wrong.