Jiahao XU
026aefb5a7
Enable rustls for x86_64-unknown-linux-gnu
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:40 +10:00
Jiahao XU
018196de45
Disable default features only when debug_build_args is overriden
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:40 +10:00
Jiahao XU
6e1f930c8e
Disable native-tls for x86_64 linux-gnu and apple-darwin
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:40 +10:00
Jiahao XU
450facd260
Install deps only on x86_64 linux gnu
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:40 +10:00
Jiahao XU
1df00e5ba8
Enable native-tls on non-cross build & pkg-config on x86_64 linux gnu
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:40 +10:00
Jiahao XU
272d049cf6
Fix cond in integration test CI
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:40 +10:00
Jiahao XU
bdef2169a3
Fix typo in integration test CI
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:40 +10:00
Jiahao XU
d3bd11c182
Improve readability of features in Cargo.toml
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:39 +10:00
Jiahao XU
00f60c18b4
Enable feature pkg-config in debug build of integration CI
...
when not doing cross compilation.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:39 +10:00
Jiahao XU
8e10c0d356
Enable feature native-tls
in debug build in integration CI
...
when not doing cross compilation
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:39 +10:00
Jiahao XU
f7caeea0e6
Enable feature native-tls in unit-tests
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:39 +10:00
Jiahao XU
0150e229aa
Add new feature native-tls
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:39 +10:00
Jiahao XU
162e4838d8
Add new feature rustls (enabled by default)
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:39 +10:00
Jiahao XU
6fe2762f11
Add new feature zlib-ng (enabeld by default)
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:39 +10:00
Jiahao XU
f2d5d0291b
Always disable feature pkg-config in integration test CI
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU
adbc2d4a11
Disable feature pkg-config
for cross compilation.
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU
8a32ab5dd3
Refactor: Extract ci-scripts/install-deps.sh
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU
74dd3b6c70
Build debug with feature pkg-config in integration test CI
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU
c2349a15cb
Install lzma, bzip & zstd only on debug build in integration test CI
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU
3dbec7718d
Fix dep installation in workflow "unit-tests"
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU
1499f5c201
Install lzma, bzip & zstd in integration test CI
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU
b22a55f08f
Install lzma, bzip and zstd lib in workflow unit-tests
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU
997d4e4e9d
Run workflow unit-tests with feature pkg-config
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:37 +10:00
Jiahao XU
6c09cb05c9
Add new feature pkg-config
: Enable linking with sys packages
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:37 +10:00
Jiahao XU
818f4da577
Add new feature static
that is enabled by default
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:34 +10:00
Félix Saparelli
3889d122a7
Releng improvements ( #224 )
2022-07-24 00:39:54 +12:00
Jiahao XU
1768392413
Merge pull request #228 from NobodyXu/fix/skip-on-custom-install
...
Fix updating metafiles: Skip on custom install path
2022-07-23 19:57:58 +10:00
Jiahao XU
5367b366d1
Use home::cargo_home
in helpers::cargo_home
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 19:17:47 +10:00
Jiahao XU
ad2d393be7
Add back dep home v0.5.3
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 19:17:26 +10:00
Jiahao XU
b4d2e9b99c
Fix get_install_path
where cargo_home
succeeds
...
The returned path must join with `"bin"`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 19:16:23 +10:00
Jiahao XU
49f665d680
Fix confusing comment in helpers::cargo_home
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 19:10:15 +10:00
Jiahao XU
3838219d89
Rm dep home
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 19:09:06 +10:00
Jiahao XU
5bf2b4e45d
Fix helpers::cargo_home
: home::cargo_home
is buggy
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 19:08:29 +10:00
Jiahao XU
3c09cfb196
Fix ci-scripts/run_tests_unix.sh
: unset CARGO_HOME
...
and `CARGO_INSTALL_ROOT`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 18:51:50 +10:00
Jiahao XU
5ea66574c3
Mod get_install_path
to ret Arc<Path>
instead of PathBuf
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 18:37:59 +10:00
Jiahao XU
5620810c55
Simplify get_install_path
using cargo_home
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 18:36:01 +10:00
Jiahao XU
79476e490b
Fix custom_install_path
detection
...
Installing to `CARGO_INSTALL_ROOT` or the local executable dir should be
considered a custom installation path.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 18:33:30 +10:00
Jiahao XU
45ba1de441
Merge pull request #227 from NobodyXu/fix/flock
...
Fix updating metafiles: Use file lock to fix race condition
2022-07-23 12:23:23 +10:00
Jiahao XU
7bdc720a9a
Fix updating metafiles: Skip on custom install path
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:59:02 +10:00
Jiahao XU
6ce48419b6
Fix CratesToml::write_to_{writer, file}
...
Make them consistent with `Crates2Json::write_to_{writer, file}`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:55:44 +10:00
Jiahao XU
0a753f3e4b
Fix Crates2Json::append_to_path
: Use file lock
...
to fix race condition.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:50:58 +10:00
Jiahao XU
d432d54c28
Add new fn Crates2Json::write_to_file
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:48:54 +10:00
Jiahao XU
1766b92547
Add new fn Crates2Json::write_to_writer
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:45:55 +10:00
Jiahao XU
15e2213225
Add new fn Crates2Json::load_from_reader
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:44:28 +10:00
Jiahao XU
d9fe7bfaf4
Fix bug in helpers::create_if_not_exist
...
Returned `File` must be both readable and writable.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:40:00 +10:00
Jiahao XU
09d210bf62
Simplify helpers::create_if_not_exist
implementation
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:32:45 +10:00
Jiahao XU
d7bd96660e
Fix CratesToml::append_to_path
: Lock file to avoid race condition
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:22:31 +10:00
Jiahao XU
e1b6fb85aa
Add new fn CratesToml::write_to_file
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:22:18 +10:00
Jiahao XU
05115641ff
Add new fn helpers::create_if_not_exist
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 22:12:16 +10:00
Jiahao XU
1cfdd3b8bc
Merge pull request #225 from NobodyXu/fix/tempdir
...
Fix: Create `temp_dir` in `install_path`
2022-07-22 21:55:38 +10:00