forked from r-devel/r-svn
-
Notifications
You must be signed in to change notification settings - Fork 0
185 lines (154 loc) · 4.96 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
on: [push, pull_request]
name: Build from SVN
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
container:
image: ${{matrix.OS}}
env:
DEBIAN_FRONTEND: noninteractive
R_CRAN_WEB: "https://cran.rstudio.com"
CRAN_RSYNC: 'mirrors.nic.cz::CRAN'
strategy:
fail-fast: false
matrix:
CC: [ gcc, clang ]
OS: [ 'debian:stable', 'debian:testing' ]
steps:
- name: System dependencies
run: |
set -e
apt-get update -y
apt-get install -y ${{matrix.CC}} wget locales git rsync gfortran xvfb autoconf pkg-config texinfo texlive-latex-extra texlive-fonts-recommended tk8.6-dev \
libcurl4-openssl-dev libblas-dev libbz2-dev libicu-dev libjpeg-dev liblapack-dev liblzma-dev libncurses5-dev libpcre2-dev libpng-dev libreadline-dev
localedef -i en_US -f UTF-8 en_US.UTF-8
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Prepare
run: |
sed -i.bak 's|$(GIT) svn info|./.github/workflows/svn-info.sh|' Makefile.in
./.github/workflows/wget-recommended.sh
./.github/workflows/svn-info.sh
- name: Configure
run: CC=${{matrix.CC}} ./configure --enable-R-shlib --with-blas --with-lapack --disable-java
- name: Build
run: make
- name: Check
run: xvfb-run make check-all
- name: Print failed tests
if: failure()
run: tail -n100 tests/*.fail
macos:
name: MacOS
runs-on: macos-latest
env:
PKG_CONFIG_PATH: /opt/X11/lib/pkgconfig
R_CRAN_WEB: "https://cran.rstudio.com"
CRAN_RSYNC: 'mirrors.nic.cz::CRAN'
R_TEXI2DVICMD: emulation
steps:
- name: System dependencies
run: |
brew cask install gfortran
brew install gettext gmp isl jpeg libmpc libpng mpfr pcre2 pkg-config readline xz texinfo wget
echo "::set-env name=PATH::$PATH:/Library/TeX/texbin:/usr/local/opt/texinfo/bin"
echo "::set-env name=dummy::$GITHUB_WORKSPACE/.github/workflows/dummy"
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Prepare
run: |
sed -i.bak 's|$(GIT) svn info|./.github/workflows/svn-info.sh|' Makefile.in
./.github/workflows/wget-recommended.sh
./.github/workflows/svn-info.sh
- name: Configure
run: CC=clang ./configure --disable-java --without-cairo --without-tcltk --without-x --with-aqua --with-lapack --enable-R-shlib SED=/usr/bin/sed
env:
PDFLATEX: ${{ env.dummy }}
- name: Build
run: make
env:
PDFLATEX: ${{ env.dummy }}
- name: Check
run: make check-all
env:
PDFLATEX: ${{ env.dummy }}
- name: Print failed tests
if: failure()
run: tail -n100 tests/*.fail
windows:
name: Windows
runs-on: windows-latest
env:
R_CRAN_WEB: "https://cran.rstudio.com"
CRAN_RSYNC: 'mirrors.nic.cz::CRAN'
strategy:
fail-fast: false
matrix:
WIN: [ 32, 64 ]
steps:
- name: Prepare git
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 100
- name: System dependencies
shell: powershell
run: |
Import-Module .\.github\workflows\scripts.ps1
SetTimezone
InstallRtoolsExe
InstallMiktex -ErrorAction SilentlyContinue;
- name: "Fix rsync-recommended"
shell: bash
run: sed -i.bak 's/rsync -rc/rsync -r/' tools/rsync-recommended
- name: Build and Check
env:
WIN: ${{matrix.WIN}}
run: C:\rtools40\usr\bin\bash --login -c "$(cygpath ${env:GITHUB_WORKSPACE})/.github/workflows/rtools40-build.sh"
- name: Print failed tests
if: failure()
shell: bash
run: tail -n100 tests/*.fail
installer:
name: Windows Installer
runs-on: windows-latest
env:
R_CRAN_WEB: "https://cran.rstudio.com"
CRAN_RSYNC: 'mirrors.nic.cz::CRAN'
strategy:
fail-fast: false
matrix:
debug: [ 'DEBUG', '' ]
steps:
- name: Prepare git
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 100
- name: System dependencies
shell: powershell
run: |
Import-Module .\.github\workflows\scripts.ps1
SetTimezone
InstallRtoolsExe
InstallMiktex -ErrorAction SilentlyContinue;
- name: "Fix rsync-recommended"
shell: bash
run: sed -i.bak 's/rsync -rc/rsync -r/' tools/rsync-recommended
- name: Build Installer
run: C:\rtools40\usr\bin\bash --login -c "$(cygpath ${env:GITHUB_WORKSPACE})/.github/workflows/rtools40-installer.sh"
env:
DEBUG: ${{matrix.debug}}
- name: Run Installer
run: .\src\gnuwin32\installer\R-devel-win.exe /SILENT
- uses: actions/upload-artifact@v2
with:
name: ${{matrix.debug}}installer
path: src/gnuwin32/installer/R-devel-win.exe