test #8012
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Build from SVN | |
concurrency: | |
group: ${{ github.event.pull_request.number || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
windows: | |
name: Windows | |
runs-on: windows-2025 | |
timeout-minutes: 120 | |
env: | |
R_CRAN_WEB: "https://cran.rstudio.com" | |
CRAN_RSYNC: 'mirrors.nic.cz::CRAN' | |
defaults: | |
run: | |
shell: msys2 {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
script: [ 'check', 'installer' ] | |
steps: | |
- name: Prepare git | |
run: git config --global core.autocrlf false | |
shell: bash | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 100 | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
detached: true | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MSYS | |
install: git make perl curl texinfo texinfo-tex rsync zip unzip diffutils | |
- name: "Download rtools44 toolchain" | |
run: | | |
url="https://github.com/r-windows/rtools-chocolatey/releases/download/6104/rtools44-toolchain-libs-base-6104.tar.zst" | |
curl -sSL $url | tar x --zstd -C /c/ || true | |
#echo "RTOOLS44_HOME=c:" >> $GITHUB_ENV | |
#echo "R_CUSTOM_TOOLS_SOFT=c:/x86_64-w64-mingw32.static.posix" >> $GITHUB_ENV | |
- name: Set timezone | |
shell: powershell | |
run: tzutil /s "GMT Standard Time" | |
- uses: r-lib/actions/setup-tinytex@v2 | |
env: | |
TINYTEX_INSTALLER: TinyTeX | |
- name: Install additional LaTeX packages | |
run: | | |
tlmgr update --self | |
tlmgr install texinfo | |
tlmgr list --only-installed | |
shell: powershell | |
- name: Build and Check | |
run: | | |
sed -i.bak 's/rsync -rc/rsync -r/' tools/rsync-recommended | |
./.github/scripts/win-${{matrix.script}}.sh | |
- name: Print failed tests | |
if: failure() && matrix.script == 'check' | |
run: tail -n100 tests/*.fail | |
- name: Run Installer | |
run: .\src\gnuwin32\installer\R-devel-win.exe /SILENT | |
if: matrix.script == 'installer' | |
shell: powershell | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: installer | |
path: src/gnuwin32/installer/R-devel-win.exe | |
if: matrix.script == 'installer' |