Jiahao XU
1102284684
Fix clippy
warnings and add new workflow clippy ( #306 )
...
* Derive `Eq` for `PkgFmt`, `PkgFmtDecomposed` & `TarBasedFmt`
* Derive `Eq` for `PkgMeta`, `PkgOverride` & `BinMeta`
* Rm unnecessary reborrow in `install_from_source`
* Rm unnecessary `into()` in `args::parse`
* Fix `clippy` warning in `CratesToml::append_to_path`
* Fix clippy warning in `cratesio_url`
* Fix clippy warning in `detect_targets_linux`
* Add `clippy` and `rustfmt` to workflow `unit-test`
Because `clippy` would not check inactive code disabled by `cfg`, so we
have to also run `clippy` on multiple targets.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-08-21 02:40:50 +12:00
dependabot[bot]
88ddcf3599
Bump softprops/action-gh-release ( #302 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-20 11:56:29 +00:00
dependabot[bot]
df3a8e21c7
Bump actions/checkout from 2 to 3 ( #303 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-20 11:44:52 +00:00
Félix Saparelli
4b00f5f143
Split crates and clean up structure of codebase ( #294 )
...
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-08-20 11:24:12 +00:00
Félix Saparelli
68d3ab56f7
Enable sparse registry in CI ( #285 )
2022-08-06 22:07:24 +12:00
Jiahao XU
140d3df8bd
Fix integration test: Set CARGO_HOME
instead of rm -rf $HOME/.cargo
...
The later would also delete the cmd `cargo`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-08-04 17:40:58 +10:00
Jiahao XU
cc92c2c4b6
Rm $HOME/.cargo
to test cargo-binstall
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-08-04 17:29:19 +10:00
Jiahao XU
9e5ff25be8
Fix release build: Set RUSTFLAGS
to link with libgcc statically
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-31 13:40:17 +10:00
Jiahao XU
af3b87df7a
Fix releasae build: Install rust-src for release
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-30 16:20:18 +10:00
Jiahao XU
7a7220b1a2
Fix build: Rm unnecessary env.TOOLCHAIN
...
Since we build it using +nightly anyway.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-30 16:20:18 +10:00
Jiahao XU
98d8a96a02
Use build-std
feature for release build to reduce binary size
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-30 16:20:17 +10:00
Félix Saparelli
ac995798ef
Split features and build args handling in build ( #257 )
2022-07-30 17:27:49 +12:00
Jiahao XU
77396d45bd
Fix release build for win: Enable fancy-no-backtrace
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-25 17:46:59 +10:00
Félix Saparelli
51b300d29e
Fixes for the CI ( #242 )
2022-07-24 20:33:56 +12:00
Félix Saparelli
310c07d9c8
Reconfigure CI cache with fallbacks ( #240 )
2022-07-24 16:10:43 +12:00
Félix Saparelli
ef2752cd42
Stop using actions-rs ( #239 )
2022-07-24 15:37:41 +12:00
Félix Saparelli
88b9aceb01
Fix the instructions for publish on the release PR ( #237 )
2022-07-24 14:32:37 +12:00
Jiahao XU
e857a88426
Add back target aarch64-unknown-linux-gnu
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:51:46 +10:00
Jiahao XU
e3a5ca2991
Add back target armv7-unknown-linux-gnueabihf
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:50:57 +10:00
Jiahao XU
18e0730afb
Disable static and zlib-ng on cross compilation
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:42:06 +10:00
Jiahao XU
b33a606109
Use native-tls for x86_64-pc-windows-msvc on release
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:41 +10:00
Jiahao XU
23139e9db5
Use rustls on debug for aarch64-apple-darwin
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:41 +10:00
Jiahao XU
82aa893306
Disable feature static & zlib-ng on x86_64-apple-darwin
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:41 +10:00
Jiahao XU
291269f50f
Fix "Build debug": Add back use-cross
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:40 +10:00
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
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
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
Félix Saparelli
3889d122a7
Releng improvements ( #224 )
2022-07-24 00:39:54 +12:00
Jiahao XU
9f914a3c84
Fix integration test: Copy from debug
for PR
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-14 21:41:32 +10:00
Jiahao XU
2936f2c3f1
Build cargo-binstall in debug mode for PR
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-14 21:32:59 +10:00
Félix Saparelli
6a127bab86
Don’t double up unit tests on PRs
2022-07-05 22:18:50 +12:00
Félix Saparelli
38ce26d0c4
Remame workflows for clarity
2022-07-05 22:17:10 +12:00
Jiahao XU
5302240829
Refactor workflow rust: Extract test into script
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 18:21:57 +10:00
Jiahao XU
9bf1ce3000
Fix typo in step "Test (Unix)"
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 17:11:52 +10:00