Skip to content

Commit 58d46fd

Browse files
committed
Simplify
1 parent bde7925 commit 58d46fd

File tree

1 file changed

+6
-32
lines changed

1 file changed

+6
-32
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -96,41 +96,15 @@ jobs:
9696
install.packages(c("R6", "testthat", "rcmdcheck"), repos="http://cran.us.r-project.org")
9797
shell: Rscript {0}
9898

99-
- name: Run R CMD build
99+
- name: Run R CMD build (non-windows)
100+
if: matrix.os != 'windows-latest'
100101
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
108103
109-
- name: Check for warnings
104+
- name: Run R CMD build (windows)
105+
if: matrix.os == 'windows-latest'
110106
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
134108
135109
- uses: actions/upload-artifact@v2
136110
with:

0 commit comments

Comments
 (0)