@@ -96,41 +96,15 @@ jobs:
96
96
install.packages(c("R6", "testthat", "rcmdcheck"), repos="http://cran.us.r-project.org")
97
97
shell : Rscript {0}
98
98
99
- - name : Run R CMD build
99
+ - name : Run R CMD build (non-windows)
100
+ if : matrix.os != 'windows-latest'
100
101
run : |
101
- R CMD build ./changeforest-r
102
-
103
- - name : Run R CMD check
104
- run : R CMD check --as-cran --no-vignettes --no-manual changeforest_*.tar.gz
105
- env :
106
- _R_CHECK_CRAN_INCOMING_ : false
107
-
102
+ _R_CHECK_CRAN_INCOMING=false R CMD build ./changeforest-r --no-manual
108
103
109
- - name : Check for warnings
104
+ - name : Run R CMD build (windows)
105
+ if : matrix.os == 'windows-latest'
110
106
run : |
111
-
112
- CHECK_LOG_FILE=changeforest-r.Rcheck/00check.log
113
- CHECK_INSTALL_FILE=changeforest-r.Rcheck/00install.out
114
- if ! [[ -f "$CHECK_LOG_FILE" ]]; then
115
- echo "Log-file not found."
116
- exit 1
117
- fi
118
- if cat $CHECK_LOG_FILE | grep -q "ERROR"; then
119
- cat $CHECK_INSTALL_FILE
120
- cat $CHECK_LOG_FILE
121
- exit 1
122
- fi
123
- if cat $CHECK_LOG_FILE | grep -q "WARNING"; then
124
- echo "Found warnings, treated as errors."
125
- cat $CHECK_LOG_FILE
126
- exit 1
127
- fi
128
- # e: pipefail
129
- # x: print commands
130
- # u: unset variables are errors
131
- # l: as login script
132
- shell : bash -lxu {0}
133
- if : matrix.os != 'windows-latest'
107
+ R.exe CMD build ./changeforest-r --no-manual
134
108
135
109
- uses : actions/upload-artifact@v2
136
110
with :
0 commit comments