1
- # For help debugging build failures open an issue on the RStudio community with the ' github- actions' tag.
2
- # https://community.rstudio. com/new-topic?category=Package%20development&tags=github- actions
1
+ # Workflow derived from https:// github.com/r-lib/ actions/tree/v2/examples
2
+ # Need help debugging build failures? Start at https://github. com/r-lib/ actions#where-to-find-help
3
3
on :
4
4
push :
5
5
pull_request :
@@ -16,26 +16,21 @@ jobs:
16
16
fail-fast : false
17
17
matrix :
18
18
config :
19
- - {os: windows-latest, r: 'oldrel'}
20
- - {os: windows-latest, r: 'release'}
19
+ - {os: windows-latest, r: '3.6'}
20
+ - {os: windows-latest, r: '4.1'}
21
+ - {os: windows-latest, r: 'next'}
21
22
- {os: macOS-latest, r: 'release'}
22
- - {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
23
- - {os: ubuntu-18.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
24
- - {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
25
- - {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
23
+ - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
24
+ - {os: ubuntu-latest, r: 'release'}
25
+ - {os: ubuntu-18.04, r: 'oldrel-1'}
26
26
27
27
env :
28
- R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
29
- RSPM : ${{ matrix.config.rspm }}
30
28
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
29
+ R_KEEP_PKG_SOURCE : yes
31
30
32
31
steps :
33
32
- uses : actions/checkout@v2
34
33
35
- - uses : r-lib/actions/setup-r@v1
36
- with :
37
- r-version : ${{ matrix.config.r }}
38
-
39
34
- name : Install Rust on Linux
40
35
if : runner.os == 'Linux'
41
36
run : sudo apt-get install -y cargo
@@ -48,39 +43,23 @@ jobs:
48
43
override : true
49
44
50
45
- name : Add more rust targets
51
- if : runner.os == 'Windows' && matrix.config.r == 'release'
46
+ if : runner.os == 'Windows'
52
47
run : |
53
48
rustup target add i686-pc-windows-gnu
54
49
rustup target add x86_64-pc-windows-gnu
55
50
Copy-Item src\Makevars.win.rust src\Makevars.win
56
51
57
- - name : Temporary toolchain hack
58
- if : runner.os == 'Windows' && matrix.config.r == 'release'
59
- run : cp -f /mingw64/lib/gcc/x86_64-w64-mingw32/8.3.0/libgcc.a /mingw64/lib/gcc/x86_64-w64-mingw32/8.3.0/libgcc_eh.a
60
- shell : c:\rtools40\usr\bin\bash.exe --login {0}
61
-
62
- - name : Query dependencies
63
- run : |
64
- install.packages('remotes')
65
- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
66
- writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
67
- shell : Rscript {0}
68
-
69
- - name : Install dependencies
70
- run : |
71
- remotes::install_deps(dependencies = TRUE)
72
- remotes::install_cran("rcmdcheck")
73
- shell : Rscript {0}
52
+ - uses : r-lib/actions/setup-r@v2
53
+ with :
54
+ r-version : ${{ matrix.config.r }}
55
+ http-user-agent : ${{ matrix.config.http-user-agent }}
56
+ use-public-rspm : true
74
57
75
- - name : Check
76
- env :
77
- _R_CHECK_CRAN_INCOMING_REMOTE_ : false
78
- run : rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
79
- shell : Rscript {0}
58
+ - uses : r-lib/actions/setup-r-dependencies@v2
59
+ with :
60
+ extra-packages : any::rcmdcheck
61
+ needs : check
80
62
81
- - name : Upload check results
82
- if : failure()
83
- uses : actions/upload-artifact@main
63
+ - uses : r-lib/actions/check-r-package@v2
84
64
with :
85
- name : ${{ runner.os }}-r${{ matrix.config.r }}-results
86
- path : check
65
+ upload-results : true
0 commit comments