-
Notifications
You must be signed in to change notification settings - Fork 573
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
[FMUComplianceChecker] Add builder #4284
Merged
giordano
merged 19 commits into
JuliaPackaging:master
from
sharanry:sy/FMUComplianceChecker
Jan 21, 2022
Merged
Changes from 2 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e46fa53
[New Package] FMUComplianceChecker
sharanry ee9baf1
Update build_tarballs.jl
sharanry 0b1d931
Update build_tarballs.jl
sharanry 8613d1c
Update build_tarballs.jl
sharanry ba054f5
Update build_tarballs.jl
sharanry 5f3224f
Update build_tarballs.jl
sharanry c31be2b
Update build_tarballs.jl
sharanry 30c7cec
Update build_tarballs.jl
sharanry e09b0c4
Update build_tarballs.jl
sharanry 89c044c
Update build_tarballs.jl
sharanry 1d94f9d
Update build_tarballs.jl
sharanry f0b947f
fix typo
sharanry 605968c
Updates based on review
sharanry 4faab16
Update checksum
sharanry 462b761
Move binaries manually
sharanry 3394a92
[FMUComplianceChecker] Add patches and build for all platforms
giordano d1d6b3d
[FMUComplianceChecker] Use proper libtool for macOS
giordano db03891
[FMUComplianceChecker] Remove extra stuff from the tarball
giordano 21745ad
Update F/FMUComplianceChecker/build_tarballs.jl
sharanry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# 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 = "FMUComplianceChecker" | ||
version = v"2.0.4" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
ArchiveSource("https://github.com/modelica-tools/FMUComplianceChecker/releases/download/2.0.4/FMUChecker-2.0.4-linux64.zip", "02f6d1a175fe4c51d5840ef40fcd05ca7fb3ceec170d7825d9c946d75eae12eb"), | ||
ArchiveSource("https://github.com/modelica-tools/FMUComplianceChecker/releases/download/2.0.4/FMUChecker-2.0.4-win64.zip", "4932a46624a7ff84235bb49df7827c7b03684f6d67318ad272bd25548cb1dc8f") | ||
sharanry marked this conversation as resolved.
Show resolved
Hide resolved
|
||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir | ||
mkdir ${bindir}/ | ||
|
||
if [[ "${target}" == *linux* ]]; then | ||
cd FMUChecker-2.0.4-linux64/ | ||
sharanry marked this conversation as resolved.
Show resolved
Hide resolved
|
||
mv ./fmuCheck.linux64 ${bindir}/fmuCheck | ||
chmod +x ${bindir}/* | ||
fi | ||
|
||
if [[ "${target}" == *mingw* ]]; then | ||
cd FMUChecker-2.0.4-win64/ | ||
sharanry marked this conversation as resolved.
Show resolved
Hide resolved
|
||
mv ./fmuCheck.win64.exe ${bindir}/fmuCheck.exe | ||
fi | ||
|
||
LIC_DIR="${prefix}/share/licenses/${SRC_NAME}" | ||
mkdir -p "${LIC_DIR}" | ||
mv "./LICENCE.md" "${LIC_DIR}/LICENSE.md" | ||
""" | ||
|
||
# These are the platforms we will build for by default, unless further | ||
# platforms are passed in on the command line | ||
platforms = [ | ||
Platform("x86_64", "windows"; ), | ||
Platform("x86_64", "linux"; libc = "glibc"), | ||
Platform("x86_64", "linux"; libc = "musl") | ||
] | ||
|
||
|
||
# The products that we will ensure are always built | ||
products = [ | ||
LibraryProduct("fmuCheck", :libFMUCheck) | ||
] | ||
|
||
# Dependencies that must be installed before this package can be built | ||
dependencies = Dependency[ | ||
] | ||
|
||
# Build the tarballs, and possibly a `build.jl` as well. | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this binary would work on a Musl-based system