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

Attempting all packages #1

Merged
merged 7 commits into from
May 30, 2019
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
products/
downloads/
build/
.DS_Store
32 changes: 20 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
language: julia
os:
- linux
- linux
julia:
- 0.6
- 1.0
notifications:
email: false
git:
depth: 99999999
cache:
timeout: 1000
directories:
- downloads
- downloads
- shards
env:
global:
- BINARYBUILDER_DOWNLOADS_CACHE=downloads
- BINARYBUILDER_AUTOMATIC_APPLE=false
- BINARYBUILDER_DOWNLOADS_CACHE=downloads
- BINARYBUILDER_SHARDS_DIR=shards
- BINARYBUILDER_AUTOMATIC_APPLE=true
- BINARYBUILDER_USE_CCACHE=true
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()'

- julia -e 'using Pkg; pkg"add BinaryProvider"; pkg"add BinaryBuilder#master"; Pkg.build()'
script:
- julia build_tarballs.jl

- julia build_tarballs.jl
deploy:
provider: releases
api-key:
secure: rHU6H/5Yq2iFXtGsucgkFJvIyMwnvGvQEdEGqNCYRP8SSct8AOXl4dSQkCpvb1VLkYKV0X0lM7HHHXu/PSTKfbx36KpqUeeSvjdFceFiiBWIT0iQW8s6AQXjPDtAiIraFIso1mSkyzlFppSWAolHZI2FVQia1mPHLqRfsw5Tsd5IRwZY/kwOkPPaEAGqpUmshRV83RKZcr9G3nOcGRppx9KH/v1+yYJgWn3zKfqElydiPQ0G27l+WCR3p27KI8sc2pBNo206kgVo9A08cA74HEcChrpTePpQr45VHHDK/2wBNVv7DFZMIivafwsZwjFvh/N/3aXaZSsmPAX64wFsPTU/2EwfiNToq+kIS9QdsvSatcI9tFveNpN21ltxSpi0FOqP4W8PU3IwkD/bP4cdIGnAmdLb0wt+bmeP8YBuDKDcrxgqJA8yj7v7fHZgDkYJbZoRTROlXMnyqowJ7Fuu6FKQoRTqxQmbA9t9pWHSU3lDB3lI98Zmdu+GoNbXve/cNbOcya2YADI2OcDenMSVeazNQ7+HOvfEwDxFqAfcU8MvRMezwWmgpZnz2yw04EgzYVZlney3T1sZhL6H2waKOHEup0CJJCs6HksXNBTTwx1IsFJR5TZZ9sKRr9tIxQo1bqxodLMI031ShftHeJHOzCaA1isbW4HoB/s6TGWTLX4=
file_glob: true
file: products/*
skip_cleanup: true
on:
repo: ianshmean/x265Builder
branch: master
25 changes: 11 additions & 14 deletions build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,38 @@
using BinaryBuilder

name = "x265Builder"
version = v"2.8"
version = v"3.0"

# Collection of sources required to build x265Builder
sources = [
"https://bitbucket.org/multicoreware/x265/downloads/x265_2.8.tar.gz" =>
"6e59f9afc0c2b87a46f98e33b5159d56ffb3558a49d8e3d79cb7fdc6b7aaa863",
"http://ftp.videolan.org/pub/videolan/x265/x265_3.0.tar.gz" =>
"c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662",

]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir
cd x265_2.8/
cd x265_3.0/
apk add nasm
export PKG_CONFIG_PATH="${prefix}/lib/pkgconfig"
export ENABLE_PIC=1
mkdir bld && cd bld
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_TOOLCHAIN_FILE=/opt/$target/$target.toolchain ../source
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_TOOLCHAIN_FILE=/opt/$target/$target.toolchain -DENABLE_PIC=ON ../source
make -j${nproc}
make install
rm -vf $prefix/lib/libx265.a

"""

# 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(:i686, :musl),
Linux(:x86_64, :musl),
MacOS(:x86_64),
FreeBSD(:x86_64)
]
platforms = supported_platforms()

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

# Dependencies that must be installed before this package can be built
Expand Down