Skip to content

Commit 0be9cb8

Browse files
committed
Rewrite workflow to use standard R and Quarto actions
1 parent 9bcc39f commit 0be9cb8

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/website.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,33 @@ env:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17-
container: rocker/r2u:latest
1817

1918
steps:
2019
- uses: actions/checkout@v4
2120

22-
- uses: actions/cache@v4
23-
name: Cache R packages
24-
id: cache-r-packages
21+
- uses: r-lib/actions/setup-r@v2
2522
with:
26-
path: |
27-
netdiffuseR_*
28-
key: ${{ runner.os }}-netdiffuseR-pkg
23+
use-public-rspm: true
2924

30-
- name: Install dependencies
31-
run: |
32-
install2.r igraph networkDynamic statnet Rcpp MatchIt remotes \
33-
SparseM viridisLite RcppArmadillo rmarkdown knitr microbenchmark
25+
- uses: r-lib/actions/setup-r-dependencies@v2
26+
with:
27+
packages: |
28+
any::igraph
29+
any::networkDynamic
30+
any::statnet
31+
any::Rcpp
32+
any::MatchIt
33+
any::remotes
34+
any::SparseM
35+
any::viridisLite
36+
any::RcppArmadillo
37+
any::rmarkdown
38+
any::knitr
39+
any::microbenchmark
3440
3541
- name: Install netdiffuseR
3642
run: |
37-
installGithub.r USCCANA/netdiffuseR
43+
Rscript -e 'remotes::install_github("USCCANA/netdiffuseR")'
3844
3945
- name: Install Quarto
4046
uses: quarto-dev/quarto-actions/setup@v2

0 commit comments

Comments
 (0)