Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Add autogenerated files to build COINMumpsBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-pablo-vielma committed Aug 23, 2018
1 parent c2f1f3d commit 1fe5e33
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
products/
downloads/
build/
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
language: julia
os:
- linux
julia:
- 0.6
notifications:
email: false
git:
depth: 99999999
cache:
timeout: 1000
directories:
- downloads
env:
global:
- BINARYBUILDER_DOWNLOADS_CACHE=downloads
- BINARYBUILDER_AUTOMATIC_APPLE=false
sudo: required

# Before anything else, get the latest versions of things
before_script:
- julia -e 'Pkg.clone("https://github.com/JuliaPackaging/BinaryProvider.jl")'
- julia -e 'Pkg.clone("https://github.com/JuliaPackaging/BinaryBuilder.jl"); Pkg.build()'

script:
- julia build_tarballs.jl


deploy:
provider: releases
api_key:
# Note; this api_key is only valid for juan-pablo-vielma/COINMumpsBuilder; you need
# to make your own: https://docs.travis-ci.com/user/deployment/releases/
secure: rPcRrWwf/PFtdGYl/06C7VhBklASM6Y9JyR9MARCJJZg06YiJjkkuMmGk5oTPhdSbvaBBeNeQMKK1vlgaBhJh9h0Cubpz/qm9xt2YhGMkJFJW9/EVKwJ//sqbGUz3GOIOnTkQYHsxmncBPEcQQi6WxkiE3Ux49HkQKhL+c9E9CdA80GgQHrcvhypmauEck/hmeKUGSShves7y7SkFvPQy3yQT5piQK3S68TVB5OSFbkn2GSQY4AYD4b8TmT0GVuNKNEKQEpt34x5oiuOg6GOjwmx3J8BXCHsHWsNfrM9spbDsYhnlSANtdoIn4ojERBv608jc228EGtZpx/BNB6V7WySUq6uv0B89qFXoVvDD7+nv/6mEpfWh4unTOvOC0Cx0dZJ81UtzGWfcegHTFltnnU1oqnPZsompX1TP7b6SahzGeEQ6sspJpBs9GQc0h1rOI1iqAdaS1nX5vUV6TDz32QigEdimfaZObABxJTXC6frgONrMIUw/sHEsaTLIsjMt1+rs5KGOztB+lFpX7yVh04Sa/7Oddr+iI68EHZ7wNMBDDZLChjulKx795UQV6L8GCrS40+bSq8dUO9qLU4H5e30lWewSV/zGUdrTfhPu+jFRLVL2R+s+chEF2YpHQFk++17xGNRfEl4RIpznultJCR/FW/WT/Kkm1Z8vycadXE=
file_glob: true
file: products/*
skip_cleanup: true
on:
repo: juan-pablo-vielma/COINMumpsBuilder
tags: true
18 changes: 18 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# COINMumpsBuilder

[![Build Status](https://travis-ci.org/juan-pablo-vielma/COINMumpsBuilder.svg?branch=master)](https://travis-ci.org/juan-pablo-vielma/COINMumpsBuilder)

This repository builds binary artifacts for the COINMumpsBuilder project. Binary artifacts are automatically uploaded to
[this repository's GitHub releases page](https://github.com/juan-pablo-vielma/COINMumpsBuilder/releases) whenever a tag is created
on this repository.

This repository was created using [BinaryBuilder.jl](https://github.com/JuliaPackaging/BinaryBuilder.jl)
60 changes: 60 additions & 0 deletions build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder

name = "COINMumpsBuilder"
version = v"1.6.0"

# Collection of sources required to build COINMumpsBuilder
sources = [
"https://github.com/coin-or-tools/ThirdParty-Mumps/archive/releases/1.6.0.tar.gz" =>
"3f2bb7d13333e85a29cd2dadc78a38bbf469bc3920c4c0933a90b7d8b8dc798a",

]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir
cd $WORKSPACE/srcdir
cd ThirdParty-Mumps-releases-1.6.0/
./get.Mumps
update_configure_scripts
mkdir build
cd build/
../configure --prefix=$prefix --with-pic --disable-pkg-config --with-blas="$prefix/lib/libcoinblas.a -lgfortran" --host=${target} --enable-shared --enable-static --enable-dependency-linking lt_cv_deplibs_check_method=pass_all --with-metis-lib="-L${prefix}/lib -lcoinmetis" --with-metis-incdir="$prefix/include/coin/ThirdParty"
make -j${nproc}
make install
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = [
Linux(:i686, :glibc),
Linux(:x86_64, :glibc),
Linux(:aarch64, :glibc),
Linux(:armv7l, :glibc, :eabihf),
Linux(:powerpc64le, :glibc),
Linux(:i686, :musl),
Linux(:x86_64, :musl),
Linux(:aarch64, :musl),
Linux(:armv7l, :musl, :eabihf),
MacOS(:x86_64),
Windows(:i686),
Windows(:x86_64)
]

# The products that we will ensure are always built
products(prefix) = [
LibraryProduct(prefix, "libcoinmumps", :libcoinmumps)
]

# Dependencies that must be installed before this package can be built
dependencies = [
"https://github.com/juan-pablo-vielma/COINMetisBuilder/releases/download/v1.3.5-beta/build_COINMetisBuilder.v1.3.5.jl",
"https://github.com/juan-pablo-vielma/COINBLASBuilder/releases/download/v1.4.6-beta2/build_COINBLASBuilder.v1.4.6.jl"
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 comments on commit 1fe5e33

Please sign in to comment.