Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-sectorbuilder
Commits
af0190fc
Commit
af0190fc
authored
Oct 21, 2019
by
laser
Browse files
chore(build): fall back to local cargo build
parent
9874093c
Changes
1
Show whitespace changes
Inline
Side-by-side
install-rust-fil-sector-builder
View file @
af0190fc
...
@@ -19,20 +19,30 @@ if download_release_tarball tarball_path "${subm_dir}"; then
...
@@ -19,20 +19,30 @@ if download_release_tarball tarball_path "${subm_dir}"; then
cp
"
${
tmp_dir
}
/bin/paramcache"
.
cp
"
${
tmp_dir
}
/bin/paramcache"
.
else
else
if
[
$CI
=
"true"
]
;
then
(>
&2
echo
"failed to find or obtain precompiled assets for
${
subm_dir
}
- falling back to local build"
)
(>
&2
echo
"failed to find or obtain precompiled assets for
${
subm_dir
}
- falling back to local build"
)
build_from_source
"
${
subm_dir
}
"
build_from_source
"
${
subm_dir
}
"
mkdir
-p
include
mkdir
-p
include
mkdir
-p
lib/pkgconfig
mkdir
-p
lib/pkgconfig
find
"
${
subm_dir
}
"
-type
f
-name
sector_builder_ffi.h
-exec
cp
--
"{}"
.
\;
find
"
${
subm_dir
}
/target/release
"
-type
f
-name
sector_builder_ffi.h
-exec
cp
--
"{}"
.
\;
find
"
${
subm_dir
}
"
-type
f
-name
libsector_builder_ffi.a
-exec
cp
--
"{}"
.
\;
find
"
${
subm_dir
}
/target/release
"
-type
f
-name
libsector_builder_ffi.a
-exec
cp
--
"{}"
.
\;
find
"
${
subm_dir
}
"
-type
f
-name
sector_builder_ffi.pc
-exec
cp
--
"{}"
.
\;
find
"
${
subm_dir
}
/target/release
"
-type
f
-name
sector_builder_ffi.pc
-exec
cp
--
"{}"
.
\;
(>
&2
echo
"WARNING: paramcache was not installed - you may wish to 'cargo install' it"
)
if
[[
!
-f
"./sector_builder_ffi.h"
]]
;
then
else
(>
&2
echo
"failed to install sector_builder_ffi.h"
)
(>
&2
echo
"build failed: could not obtain precompiled assets for
${
subm_dir
}
- contact @laser or @dignifiedquire"
)
exit
1
exit
1
fi
fi
if
[[
!
-f
"./libsector_builder_ffi.a"
]]
;
then
(>
&2
echo
"failed to install libsector_builder_ffi.a"
)
exit
1
fi
if
[[
!
-f
"./sector_builder_ffi.pc"
]]
;
then
(>
&2
echo
"failed to install sector_builder_ffi.pc"
)
exit
1
fi
(>
&2
echo
"WARNING: paramcache was not installed - you may wish to 'cargo install' it"
)
fi
fi
Write
Preview
Markdown
is supported
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