Skip to content

Commit

Permalink
Merge pull request #26 from giordano/mg/jll-package
Browse files Browse the repository at this point in the history
Use JLL package to provide the library
  • Loading branch information
giordano authored Apr 12, 2020
2 parents b6c15b6 + 2648cfe commit 3681ed8
Show file tree
Hide file tree
Showing 16 changed files with 70 additions and 236 deletions.
35 changes: 0 additions & 35 deletions .cirrus.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ local Pipeline(os, arch, version) = {

[
Pipeline("linux", "arm", "1.3"),
Pipeline("linux", "arm64", "1.0"),
Pipeline("linux", "arm64", "1.1"),
Pipeline("linux", "arm64", "1.2"),
Pipeline("linux", "arm64", "1.3")
Pipeline("linux", "arm", "1.4"),
Pipeline("linux", "arm64", "1.3"),
Pipeline("linux", "arm64", "1.4")
]
28 changes: 7 additions & 21 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,57 +14,43 @@ steps:

---
kind: pipeline
name: linux - arm64 - Julia 1.0
name: linux - arm - Julia 1.4

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.0
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

---
kind: pipeline
name: linux - arm64 - Julia 1.1

platform:
os: linux
arch: arm64
arch: arm

steps:
- name: build
image: julia:1.1
image: julia:1.4
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

---
kind: pipeline
name: linux - arm64 - Julia 1.2
name: linux - arm64 - Julia 1.3

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.2
image: julia:1.3
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

---
kind: pipeline
name: linux - arm64 - Julia 1.3
name: linux - arm64 - Julia 1.4

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.3
image: julia:1.4
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

Expand Down
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
*.jl.cov
*.jl.*.cov
*.jl.mem
/deps
/docs/build/
/docs/site/
/test/benchmark-fortran
/test/benchmark-c
/benchmarks/benchmark-fortran
/benchmarks/benchmark-c
Manifest.toml
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ language: julia
os:
- linux
- osx
- freebsd
julia:
- 1.0
- 1.3
- 1.4
- nightly
env:
matrix:
- JULIA_CUBA_BUILD_SOURCE=true
- JULIA_CUBA_BUILD_SOURCE=false
notifications:
email: false
git:
Expand All @@ -20,12 +16,23 @@ git:
after_success:
- julia -e 'using Pkg; cd(Pkg.dir("Cuba")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'

branches:
only:
- master
- gh-pages # For building documentation
- /^testing-.*$/ # testing branches
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags

cache:
directories:
- $HOME/.julia/artifacts

jobs:
allow_failures:
- julia: nightly
include:
- stage: "Documentation"
julia: 1.0
julia: 1.4
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Expand Down
9 changes: 4 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name = "Cuba"
uuid = "8a292aeb-7a57-582c-b821-06e4c11590b1"
authors = ["Mosè Giordano <[email protected]>"]
version = "2.0.0"
version = "2.1.0"

[deps]
BinaryProvider = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Cuba_jll = "3bed1096-5ab2-53a1-92e2-6c1cc31d0f4b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[compat]
BinaryProvider = "≥ 0.5.0"
julia = "≥ 1.0.0"
Cuba_jll = "4.2"
julia = "1.3.0"

[extras]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
7 changes: 4 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
environment:
matrix:
- julia_version: 1
- julia_version: 1.1
- julia_version: 1.2
- julia_version: 1.3
- julia_version: 1.4
- julia_version: nightly

platform:
Expand All @@ -21,6 +19,9 @@ branches:
- master
- /release-.*/

cache:
- '%USERPROFILE%\.julia\artifacts'

notifications:
- provider: Email
on_build_success: false
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 8 additions & 4 deletions test/benchmark.jl → benchmarks/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,20 @@ end

cd(@__DIR__) do
if mtime("benchmark.c") > mtime("benchmark-c")
run(`gcc -O3 -I ../deps/usr/include -o benchmark-c benchmark.c $(Cuba.libcuba) -lm`)
run(`gcc -O3 -I $(Cuba.Cuba_jll.artifact_dir)/include -o benchmark-c benchmark.c $(Cuba.Cuba_jll.libcuba_path) -lm`)
end
@info "Performance of Cuba Library in C:"
run(`./benchmark-c`)
withenv(Cuba.Cuba_jll.LIBPATH_env => Cuba.Cuba_jll.LIBPATH) do
run(`./benchmark-c`)
end

if success(`which gfortran`)
if mtime("benchmark.f") > mtime("benchmark-fortran")
run(`gfortran -O3 -fcheck=no-bounds -cpp -o benchmark-fortran benchmark.f $(Cuba.libcuba) -lm`)
run(`gfortran -O3 -fcheck=no-bounds -cpp -o benchmark-fortran benchmark.f $(Cuba.Cuba_jll.libcuba_path) -lm`)
end
@info "Performance of Cuba Library in Fortran:"
run(`./benchmark-fortran`)
withenv(Cuba.Cuba_jll.LIBPATH_env => Cuba.Cuba_jll.LIBPATH) do
run(`./benchmark-fortran`)
end
end
end
51 changes: 0 additions & 51 deletions deps/build.jl

This file was deleted.

66 changes: 0 additions & 66 deletions deps/build_from_source.jl

This file was deleted.

2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"

[compat]
Documenter = "~0.20"
Documenter = "~0.24"
1 change: 0 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ using Documenter, Cuba

makedocs(
modules = [Cuba],
format = :html,
sitename = "Cuba",
)

Expand Down
Loading

2 comments on commit 3681ed8

@giordano
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/12788

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.1.0 -m "<description of version>" 3681ed83b8fa0fafba03c7d67d2689d0028e920c
git push origin v2.1.0

Please sign in to comment.