Unverified Commit 8226f5b5 authored by Erin Swenson-Healey's avatar Erin Swenson-Healey Committed by GitHub
Browse files

Merge pull request #26 from filecoin-project/feat/no-fallback-for-non-ci-builds

ci(fallback): don't fall back to local Rust build if precompiled assets not available
parents 25e56c1c bb34c11b
......@@ -19,15 +19,20 @@ if download_release_tarball tarball_path "${subm_dir}"; then
cp "${tmp_dir}/bin/paramcache" .
else
(>&2 echo "failed to find or obtain precompiled assets for ${subm_dir} - falling back to local build")
build_from_source "${subm_dir}"
mkdir -p include
mkdir -p lib/pkgconfig
find "${subm_dir}" -type f -name sector_builder_ffi.h -exec cp -- "{}" . \;
find "${subm_dir}" -type f -name libsector_builder_ffi.a -exec cp -- "{}" . \;
find "${subm_dir}" -type f -name sector_builder_ffi.pc -exec cp -- "{}" . \;
(>&2 echo "WARNING: paramcache was not installed - you may wish to 'cargo install' it")
if [ $CI = "true" ]; then
(>&2 echo "failed to find or obtain precompiled assets for ${subm_dir} - falling back to local build")
build_from_source "${subm_dir}"
mkdir -p include
mkdir -p lib/pkgconfig
find "${subm_dir}" -type f -name sector_builder_ffi.h -exec cp -- "{}" . \;
find "${subm_dir}" -type f -name libsector_builder_ffi.a -exec cp -- "{}" . \;
find "${subm_dir}" -type f -name sector_builder_ffi.pc -exec cp -- "{}" . \;
(>&2 echo "WARNING: paramcache was not installed - you may wish to 'cargo install' it")
else
(>&2 echo "build failed: could not obtain precompiled assets for ${subm_dir} - contact @laser or @dignifiedquire")
exit 1
fi
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment