Skip to content

[ci] use GitHub Actions for R CI jobs (fixes #2353) #3119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 95 commits into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
7e9d16a
GitHub Actions
jameslamb May 22, 2020
4c9d0cc
ok
jameslamb May 22, 2020
740d1d9
fixing on list
jameslamb May 22, 2020
6b619cc
stuff
jameslamb May 22, 2020
d83f54d
directories
jameslamb May 22, 2020
2e8be83
directories
jameslamb May 22, 2020
275119e
things
jameslamb May 22, 2020
6186106
env variables
jameslamb May 22, 2020
faf2e8d
working dir
jameslamb May 22, 2020
b6423d3
running a bunch of tasks
jameslamb May 22, 2020
482ae93
more builds
jameslamb May 22, 2020
6f783d8
PATH
jameslamb May 22, 2020
48eb0ef
actually use R task
jameslamb May 22, 2020
8bef95c
TASK
jameslamb May 22, 2020
e515ae7
be right, often
jameslamb May 22, 2020
deda7f6
doing stuff
jameslamb May 22, 2020
1f00cd2
trying stuff
jameslamb May 22, 2020
da5de22
more paths
jameslamb May 22, 2020
115bbe1
conda activate
jameslamb May 22, 2020
8822def
updating PATH
jameslamb May 22, 2020
d741afc
trying bash
jameslamb May 22, 2020
4828392
where the hell is activate
jameslamb May 22, 2020
ceb2ff2
WHERE IS ACTIVATE
jameslamb May 22, 2020
3c5a64e
set up conda
jameslamb May 22, 2020
b019735
more conda
jameslamb May 22, 2020
a8340c8
PLEASE WORK
jameslamb May 22, 2020
106402b
installing cpplint
jameslamb May 22, 2020
ebff0f6
try r-package
jameslamb May 22, 2020
0626247
R version
jameslamb May 22, 2020
b627d82
try windows job
jameslamb May 22, 2020
05b9b87
make windows work
jameslamb May 22, 2020
dcefc10
use powershell
jameslamb May 22, 2020
1ce1a97
exe
jameslamb May 22, 2020
7c08d5d
use conda
jameslamb May 22, 2020
ee1c6c3
conda init powershell
jameslamb May 22, 2020
72240c4
different conda approach
jameslamb May 22, 2020
2ec6808
make it work
jameslamb May 22, 2020
d5a97b9
cleaning up
jameslamb May 22, 2020
9372b41
init powershell
jameslamb May 22, 2020
56e94e6
fixing windows
jameslamb May 23, 2020
22c082f
more windows
jameslamb May 23, 2020
b4f96e1
build directory
jameslamb May 23, 2020
2b24d8c
no way right
jameslamb May 23, 2020
1a63eef
maybe it will work
jameslamb May 23, 2020
54a58c3
trying Visual Studio
jameslamb May 23, 2020
045d530
do this
jameslamb May 23, 2020
68a17ee
Windows is interesting
jameslamb May 23, 2020
eb75583
put back check-output
jameslamb May 23, 2020
81e387e
set compiler
jameslamb May 23, 2020
f2a0d10
stuff
jameslamb May 23, 2020
5b786ed
more fixes
jameslamb May 23, 2020
38f5e5d
fix the broken things
jameslamb May 23, 2020
a384208
updating jobs
jameslamb May 23, 2020
20ad23e
continuing
jameslamb May 23, 2020
39fdc4f
poweshell is bad
jameslamb May 23, 2020
adb7751
ok so maybe not powershell
jameslamb May 23, 2020
fefa2ab
cmon now
jameslamb May 23, 2020
b4a2325
ok so
jameslamb May 23, 2020
0d04289
fixing env variables
jameslamb May 23, 2020
294c32c
maybe this
jameslamb May 24, 2020
8918cb3
MINGW job
jameslamb May 24, 2020
cf2b784
cleaning up
jameslamb May 24, 2020
ff365e0
conda init powershell
jameslamb May 24, 2020
0454738
moving more R stuff into GitHub Actions
jameslamb May 24, 2020
e6230fa
everything else
jameslamb May 24, 2020
70e657e
use powershell
jameslamb May 24, 2020
19c7ac5
cmon now powershell
jameslamb May 24, 2020
b5aceda
ttry to Continue
jameslamb May 24, 2020
66c15a1
override powershell
jameslamb May 24, 2020
cd3f72c
peg MiKTeX URL
jameslamb May 24, 2020
8aa0b12
what is happening
jameslamb May 24, 2020
0cf6913
try powershell -File
jameslamb May 24, 2020
68de8ad
trying stuff
jameslamb May 24, 2020
b85213c
path
jameslamb May 24, 2020
f6469bf
more testing of output
jameslamb May 25, 2020
fe9a80c
Matches uppercase
jameslamb May 25, 2020
58ad283
more regex stuff
jameslamb May 25, 2020
7af8130
this is getting ridiculous
jameslamb May 25, 2020
295c7d0
back to powershell I guess
jameslamb May 25, 2020
95b2ad5
more commands
jameslamb May 25, 2020
f6fc655
this might work
jameslamb May 25, 2020
3ebeccd
adding more reliable miktex download
jameslamb May 25, 2020
9b23823
trying to download miktex
jameslamb May 25, 2020
0077756
installing httr
jameslamb May 25, 2020
ba94d94
fix error in MiKTeX script
jameslamb May 25, 2020
19179a9
remove comments
jameslamb May 25, 2020
c2c6a39
redirect output
jameslamb May 26, 2020
75fc7c1
redirect output
jameslamb May 26, 2020
4278d61
move linting back to Travis
jameslamb May 26, 2020
2e8d8a8
change redirection
jameslamb May 26, 2020
6efe52f
switch back to just mac and linux
jameslamb May 28, 2020
f06fd22
put linting exclude back
jameslamb May 28, 2020
1ea7a36
renamed R_TRAVIS_LINUX
jameslamb May 30, 2020
728d7f0
revert changes to non-R tasks and update events
jameslamb May 30, 2020
0710aae
simplify
jameslamb May 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adding more reliable miktex download
  • Loading branch information
jameslamb committed Jun 1, 2020
commit 3ebeccd72d3f9f03cb650bf1e33a0ed4c19b5eb6
25 changes: 25 additions & 0 deletions .ci/download-miktex.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# mirrors that host miktexsetup.zip do so only with explicitly-named
# files like miktexsetup-2.4.5.zip, so hard-coding a link to an archive as a
# way to peg to one mirror does not work
#
# this script will find the specific version of miktexsetup.zip at a given
# mirror
library(httr)
args <- commandArgs(trailingOnly = TRUE)
DESTFILE <- args[[1L]]
MIRROR <- "https://ctan.math.illinois.edu/systems/win32/miktex/setup/windows-x64/"
mirror_contents <- httr::content(
httr::RETRY("GET", mirror)
, as = "text"
)
content_lines <- strsplit(mirror_contents, "\n")[[1L]]
content_lines <- content_lines[grepl("miktexsetup-.*", content_lines)]
zip_loc <- regexpr(">miktexsetup-[0-9]+.*x64\\.zip", content_lines)
zip_name <- gsub(">", "", regmatches(content_lines, zip_loc))
full_zip_url <- file.path(MIRROR, zip_name)
print(sprintf("downloading %s", full_zip_url))
download.file(
url = full_zip_url
, destfile = DESTFILE
)
print(sprintf("MiKTeX setup downloaded to %s", DESTFILE))
3 changes: 2 additions & 1 deletion .ci/test_r_package_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ Write-Output "Done installing Rtools"
# build the package documentation for those
if ($env:COMPILER -eq "MINGW") {
Write-Output "Downloading MiKTeX"
Download-File-With-Retries -url "https://miktex.org/download/win/miktexsetup-x64.zip" -destfile "miktexsetup-x64.zip"
Rscript $env:BUILD_SOURCESDIRECTORY\.ci\download-miktex.R "miktexsetup-x64.zip"
#Download-File-With-Retries -url "https://miktex.org/download/win/miktexsetup-x64.zip" -destfile "miktexsetup-x64.zip"
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("miktexsetup-x64.zip", "miktex")
Write-Output "Setting up MiKTeX"
Expand Down