2525 fail-fast : false
2626 matrix :
2727 config :
28- - {os: windows-latest, r: 'release'}
29- # - {os: windows-2022, r: 'devel'}
28+ - {os: windows-latest, r: 'release', rtools: '42', windows-path-include-mingw: 'false'}
3029 - {os: macOS-latest, r: 'release'}
3130 - {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
3231 - {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
@@ -40,25 +39,12 @@ jobs:
4039 - uses : actions/checkout@v2
4140
4241 - uses : r-lib/actions/setup-r@v2
43- if : matrix.config.os != 'windows-2022'
4442 with :
4543 r-version : ${{ matrix.config.r }}
44+ rtools-version : ${{ matrix.config.rtools }}
4645 http-user-agent : ${{ matrix.config.http-user-agent }}
4746 use-public-rspm : true
4847
49- - name : Setup R (Windows UCRT)
50- if : matrix.config.os == 'windows-latest'
51- uses : kalibera/ucrt3/actions/r-install@main
52-
53- - name : Install UCRT toolchain
54- if : matrix.config.os == 'windows-latest'
55- uses : kalibera/ucrt3/actions/toolchain-install@main
56- with :
57- # base ... toolchain has the compilers and libraries to build R and recommended packages
58- # full ... additional libraries to build CRAN packages
59- # none ... no toolchain is needed (no native code)
60- toolchain-type : full
61-
6248 - uses : r-lib/actions/setup-pandoc@v2
6349
6450 - uses : r-lib/actions/setup-r-dependencies@v2
@@ -99,28 +85,13 @@ jobs:
9985 shell : Rscript {0}
10086
10187 - name : Check
102- if : matrix.config.os != 'windows-2022'
10388 env :
10489 _R_CHECK_CRAN_INCOMING_REMOTE_ : false
10590 run : |
10691 options(crayon.enabled = TRUE)
10792 rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
10893 shell : Rscript {0}
10994
110- # - name: Whereabouts of gcc and g++
111- # if: matrix.config.os == 'windows-latest'
112- # run: |
113- # echo %PATH%
114- # where gcc
115- # where g++
116-
117- - name : Check package (UCRT)
118- if : matrix.config.os == 'windows-latest'
119- env :
120- _R_INSTALL_TIME_PATCHES_ : no
121- TZ : UTC
122- uses : kalibera/R-actions/pkg-check@master
123-
12495 - name : Build Windows binary package
12596 if : matrix.os == 'windows-latest'
12697 run : pkgbuild::build(binary = TRUE, dest_path = Sys.getenv("GITHUB_WORKSPACE"))
0 commit comments