Skip to content
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

Provide binary download of libRmath-julia dll on Windows #10

Merged
merged 4 commits into from
Jul 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 39 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
environment:
matrix:
- JULIAVERSION: "julialang/bin/winnt/x86/0.4/julia-0.4-latest-win32.exe"
- JULIAVERSION: "julialang/bin/winnt/x64/0.4/julia-0.4-latest-win64.exe"
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"

branches:
only:
- master
- /release-.*/

notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false

install:
# If there's a newer build queued for the same PR, cancel this one
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
# Download most recent Julia Windows binary
- ps: (new-object net.webclient).DownloadFile(
$("http://s3.amazonaws.com/"+$env:JULIAVERSION),
"C:\projects\julia-binary.exe")
# Run installer silently, output to C:\projects\julia
- C:\projects\julia-binary.exe /S /D=C:\projects\julia

build_script:
# Need to convert from shallow to complete for Pkg.clone to work
- IF EXIST .git\shallow (git fetch --unshallow)
- C:\projects\julia\bin\julia -e "versioninfo();
Pkg.clone(pwd(), \"Rmath\"); Pkg.build(\"Rmath\")"

test_script:
- C:\projects\julia\bin\julia -e "Pkg.test(\"Rmath\")"
3 changes: 3 additions & 0 deletions deps/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ downloads
src
usr
deps.jl
bin32
bin64
COPYING
9 changes: 9 additions & 0 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ provides(Sources, URI("https://github.com/JuliaLang/Rmath-julia/archive/v$versio
prefix = joinpath(BinDeps.depsdir(libRmath), "usr")
srcdir = joinpath(BinDeps.srcdir(libRmath), "Rmath-julia-$version")

# These Windows binaries were taken from `make -C deps install-Rmath-julia`
# in a Cygwin cross-compile from the release-0.4 branch of julia
# Future work: standalone cross-compiled binaries using openSUSE docker container
provides(Binaries,
URI("https://dl.bintray.com/tkelman/generic/libRmath-julia.7z"),
[libRmath], unpacked_dir="bin$(Sys.WORD_SIZE)",
SHA="d70db19ce7c1aa11015ff9e25e08d068bb80d1237570c9d60ece372712dd3754",
os = :Windows)

# If your library uses configure or cmake, good idea to do an
# out-of-tree build - see examples in JuliaOpt and JuliaWeb
provides(SimpleBuild,
Expand Down
2 changes: 2 additions & 0 deletions src/Rmath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
## This module is for archival purposes. The interface in the
## Distributions module is much more effective.

__precompile__()

module Rmath

using Compat
Expand Down