-
Notifications
You must be signed in to change notification settings - Fork 86
72 lines (60 loc) · 1.92 KB
/
build-svn.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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-latest
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@v3
with:
fetch-depth: 100
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
install: git make perl curl texinfo texinfo-tex rsync unzip diffutils
- name: "Download rtools43 toolchain"
run: |
url="https://github.com/r-windows/files/releases/download/5550/rtools43-toolchain-libs-base-5550.tar.zst"
curl -sSL $url | tar x --zstd -C /c/ || true
#echo "RTOOLS43_HOME=c:" >> $GITHUB_ENV
#echo "R_CUSTOM_TOOLS_SOFT=c:/x86_64-w64-mingw32.static.posix" >> $GITHUB_ENV
- name: Install Miktex
shell: powershell
run: |
Import-Module .\.github\scripts\installers.ps1
SetTimezone
InstallMiktex -ErrorAction SilentlyContinue;
- 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@v3
with:
name: installer
path: src/gnuwin32/installer/R-devel-win.exe
if: matrix.script == 'installer'