Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Besançon
scipopt-crossbuilder
Commits
4fba1a53
Commit
4fba1a53
authored
Dec 06, 2021
by
Mathieu Besançon
Browse files
first commit
parents
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
4fba1a53
build
Manifest.toml
Project.toml
0 → 100644
View file @
4fba1a53
[deps]
BinaryBuilder
=
"12aac903-9f7c-5d81-afc2-d9565ea332ae"
builder.jl
0 → 100644
View file @
4fba1a53
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using
BinaryBuilder
,
Pkg
name
=
"SCIP_PaPILO"
version
=
v
"0.1.0"
dir_path
=
get
(
ENV
,
"SCIPOPTSUITE"
,
""
)
if
!
ispath
(
dir_path
)
error
(
"SCIPOPTSUITE environment variable not set"
)
end
sources
=
[
DirectorySource
(
dir_path
)]
# Bash recipe for building across all platforms
script
=
raw
"""
cd scipoptsuite*
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=
$
prefix
\
-DCMAKE_TOOLCHAIN_FILE=
$
{CMAKE_TARGET_TOOLCHAIN}
\
-DCMAKE_BUILD_TYPE=Release
\
-DZIMPL=OFF
\
-DUG=0
\
-DAMPL=0
\
-DSYM=bliss
\
-DIPOPT_DIR=
$
{prefix} -DIPOPT_LIBRARIES=
$
{libdir} ..
make -j
$
{nproc} scip
make -j
$
{nproc} gcg
make papilo-executable
make install
mkdir -p
$
{prefix}/share/licenses/SCIP_PaPILO
for dir in papilo scip soplex; do
cp
$
WORKSPACE/srcdir/scipoptsuite*/
$
{dir}/COPYING
$
{prefix}/share/licenses/SCIP_PaPILO/LICENSE_
$
{dir}
done
cp
$
WORKSPACE/srcdir/scipoptsuite*/gcg/LICENSE
$
{prefix}/share/licenses/SCIP_PaPILO/LICENSE_gcg
"""
# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms
=
expand_gfortran_versions
(
expand_cxxstring_abis
(
supported_platforms
(;
experimental
=
true
)))
filter!
(
platforms
)
do
p
arch
(
p
)
∉
(
"armv6l"
,
"armv7l"
)
&&
!
Sys
.
iswindows
(
p
)
&&
libgfortran_version
(
p
)
>=
v
"4"
&&
libc
(
p
)
!=
"musl"
end
@info
(
"Building on platforms:
\n
"
*
join
(
string
.
(
platforms
),
",
\n
"
))
# The products that we will ensure are always built
products
=
[
ExecutableProduct
(
"papilo"
,
:
papilo
),
ExecutableProduct
(
"scip"
,
:
scip
),
LibraryProduct
(
"libscip"
,
:
libscip
),
LibraryProduct
(
"libgcg"
,
:
libgcg
),
]
dependencies
=
[
Dependency
(
PackageSpec
(
name
=
"bliss_jll"
,
uuid
=
"508c9074-7a14-5c94-9582-3d4bc1871065"
)),
Dependency
(
PackageSpec
(
name
=
"boost_jll"
,
uuid
=
"28df3c45-c428-5900-9ff8-a3135698ca75"
);
compat
=
"=1.76.0"
),
Dependency
(
PackageSpec
(
name
=
"Bzip2_jll"
,
uuid
=
"6e34b625-4abd-537c-b88f-471c36dfa7a0"
);
compat
=
"1.0.8"
),
Dependency
(
PackageSpec
(
name
=
"CompilerSupportLibraries_jll"
,
uuid
=
"e66e0078-7015-5450-92f7-15fbd957f2ae"
)),
Dependency
(
PackageSpec
(
name
=
"GMP_jll"
,
uuid
=
"781609d7-10c4-51f6-84f2-b8444358ff6d"
),
v
"6.2.0"
),
Dependency
(
PackageSpec
(
name
=
"Ipopt_jll"
,
uuid
=
"9cc047cb-c261-5740-88fc-0cf96f7bdcc7"
)),
Dependency
(
PackageSpec
(
name
=
"oneTBB_jll"
,
uuid
=
"1317d2d5-d96f-522e-a858-c73665f53c3e"
);
compat
=
"2021.4.1"
),
Dependency
(
PackageSpec
(
name
=
"Readline_jll"
,
uuid
=
"05236dd9-4125-5232-aa7c-9ec0c9b2c25a"
)),
Dependency
(
PackageSpec
(
name
=
"Zlib_jll"
,
uuid
=
"83775a58-1f1d-513f-b197-d71354ab007a"
)),
]
# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs
(
ARGS
,
name
,
version
,
sources
,
script
,
platforms
,
products
,
dependencies
;
preferred_gcc_version
=
v
"7"
,
julia_compat
=
"1.6"
,
)
run_builder.sh
0 → 100755
View file @
4fba1a53
#!/bin/bash
export
SCIPOPTSUITE
=
$1
julia
--project
builder.jl
--deploy
=
local
--verbose
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment