Skip to content

Commit 8f28a7c

Browse files
committed
ci: updated gha
1 parent 4200d82 commit 8f28a7c

File tree

3 files changed

+31
-23
lines changed

3 files changed

+31
-23
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# use a different tic template type if you do not want to build on all listed platforms
2222
#- { os: windows-latest, r: "release", java: "true" }
2323
#- { os: macOS-latest, r: "release", java: "true" }
24-
- { os: ubuntu-latest, r: "release", java: "false" }
24+
- { os: ubuntu-latest, r: "release", java: "true" }
2525

2626
env:
2727
# otherwise remotes::fun() errors cause the build to fail. Example: Unavailability of binaries
@@ -81,7 +81,7 @@ jobs:
8181

8282
- name: "[Cache] Restore R package cache"
8383
if: runner.os != 'Windows'
84-
uses: actions/cache/restore@v3
84+
uses: actions/cache/restore@v4
8585
with:
8686
path: ${{ env.R_LIBS_USER }}
8787
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{steps.date.outputs.date}}

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# use a different tic template type if you do not want to build on all listed platforms
2222
#- { os: windows-latest, r: "release", java: "true" }
2323
#- { os: macOS-latest, r: "release", java: "true" }
24-
- { os: ubuntu-latest, r: "release", java: "false" }
24+
- { os: ubuntu-latest, r: "release", java: "true" }
2525

2626
env:
2727
# otherwise remotes::fun() errors cause the build to fail. Example: Unavailability of binaries
@@ -81,7 +81,7 @@ jobs:
8181

8282
- name: "[Cache] Restore R package cache"
8383
if: runner.os != 'Windows'
84-
uses: actions/cache/restore@v3
84+
uses: actions/cache/restore@v4
8585
with:
8686
path: ${{ env.R_LIBS_USER }}
8787
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{steps.date.outputs.date}}

.github/workflows/tic.yml

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
## tic GitHub Actions template: linux-macos-windows-deploy
2-
## revision date: 2020-05-21
2+
## revision date: 2023-12-15
33
on:
4+
workflow_dispatch:
45
push:
6+
branches:
7+
- main
8+
- master
9+
- cran-*
10+
- development
511
pull_request:
12+
branches:
13+
- main
14+
- master
15+
- development
616
# for now, CRON jobs only run on the default branch of the repo (i.e. usually on master)
717
schedule:
818
# * is a special character in YAML so you have to quote this string
@@ -21,28 +31,20 @@ jobs:
2131
matrix:
2232
config:
2333
# use a different tic template type if you do not want to build on all listed platforms
24-
- { os: windows-latest, r: "release", pkgdown: "true", latex: "true", java: "false" }
25-
- { os: macOS-latest, r: "release", pkgdown: "true", latex: "true", java: "false" }
26-
- { os: ubuntu-latest, r: "release", pkgdown: "true", latex: "true", java: "false" }
27-
- { os: ubuntu-latest, r: "devel", pkgdown: "true", latex: "true", java: "false" }
34+
- { os: windows-latest, r: "release", pkgdown: "true", latex: "true", java: "true" }
35+
- { os: macOS-latest, r: "release", pkgdown: "true", latex: "true", java: "true" }
36+
- { os: ubuntu-latest, r: "release", pkgdown: "true", latex: "true", java: "true" }
37+
- { os: ubuntu-latest, r: "devel", pkgdown: "true", latex: "true", java: "true" }
38+
2839

2940
env:
30-
# otherwise remotes::fun() errors cause the build to fail. Example: Unavailability of binaries
31-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
32-
CRAN: ${{ matrix.config.cran }}
33-
# we are not allowed to write to ~/.ccache on GH Actions
34-
# setting some ccache options
35-
CCACHE_BASEDIR: ${{ GITHUB.WORKSPACE }}
36-
CCACHE_DIR: ${{ GITHUB.WORKSPACE }}/.ccache
37-
CCACHE_NOHASHDIR: true
38-
CCACHE_SLOPPINESS: include_file_ctime
41+
# make sure to run `tic::use_ghactions_deploy()` to set up deployment
42+
TIC_DEPLOY_KEY: ${{ secrets.TIC_DEPLOY_KEY }}
3943
# prevent rgl issues because no X11 display is available
4044
RGL_USE_NULL: true
4145
# if you use bookdown or blogdown, replace "PKGDOWN" by the respective
4246
# capitalized term. This also might need to be done in tic.R
4347
BUILD_PKGDOWN: ${{ matrix.config.pkgdown }}
44-
# macOS >= 10.15.4 linking
45-
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
4648
# use GITHUB_TOKEN from GitHub to workaround rate limits in {remotes}
4749
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4850

@@ -54,8 +56,14 @@ jobs:
5456
r-version: ${{ matrix.config.r }}
5557
Ncpus: 4
5658

59+
- uses: r-lib/actions/setup-pandoc@v2
60+
if: runner.os != 'Linux'
61+
5762
- uses: r-lib/actions/setup-tinytex@v2
5863
if: matrix.config.latex == 'true'
64+
env:
65+
# install full prebuilt version
66+
TINYTEX_INSTALLER: TinyTeX
5967
- run: tlmgr --version
6068

6169
- name: Install additional LaTeX packages
@@ -64,7 +72,7 @@ jobs:
6472
tlmgr install babel-german
6573
tlmgr list --only-installed
6674
67-
- uses: r-lib/actions/setup-pandoc@v2
75+
- uses: quarto-dev/quarto-actions/setup@v2
6876
if: matrix.config.latex == 'true'
6977

7078
- uses: actions/setup-java@v4
@@ -87,7 +95,7 @@ jobs:
8795

8896
- name: "[Cache] Restore R package cache"
8997
if: runner.os != 'Windows'
90-
uses: actions/cache/restore@v3
98+
uses: actions/cache/restore@v4
9199
with:
92100
path: ${{ env.R_LIBS_USER }}
93101
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{steps.date.outputs.date}}
@@ -104,7 +112,7 @@ jobs:
104112

105113
- name: "[Cache] Save R package cache"
106114
if: runner.os != 'Windows' && always()
107-
uses: actions/cache/save@v3
115+
uses: actions/cache/save@v4
108116
with:
109117
path: ${{ env.R_LIBS_USER }}
110118
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{steps.date.outputs.date}}

0 commit comments

Comments
 (0)