Jiahao XU
fff4b72256
Enable feature zlib-ng of flate2 so that zlib-ng is used
...
which is the fastest implementation flate2 supports.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:45:12 +10:00
Jiahao XU
20b2c37ffb
Bump dep flate2 to v1.0.24
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:45:11 +10:00
Jiahao XU
355895d8b6
Disable all features of zip
except deflate, bzip2 and zstd
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:45:10 +10:00
Jiahao XU
91bb84d5a8
Optimize dep tokio: Disable all feature except rt-multi-thread, macros
...
and process
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:44:20 +10:00
Félix Saparelli
db3f12c3ea
Merge pull request #148 from NobodyXu/feature/zstd
2022-05-31 23:02:16 +12:00
Jiahao XU
5d62f7f615
Rm target aarch64-unknown-linux-gnu & armv7-unknown-linux-gnueabihf
...
Since they are the only two targets that crate `zstd-sys` failed to
build.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 20:41:32 +10:00
Félix Saparelli
03d4630024
Merge pull request #149 from NobodyXu/optimize-release
2022-05-31 22:34:46 +12:00
Jiahao XU
393e808951
Update Cross.toml
...
Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2022-05-31 19:36:39 +10:00
Jiahao XU
66a3e9f416
Add back workaround for musl targets
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 19:32:02 +10:00
Jiahao XU
e0f67973ae
Update Cross.toml
...
Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2022-05-31 19:31:20 +10:00
Jiahao XU
5f3396a886
Rm image specification for musl targets in Cross.toml
...
musl targets work fine, no workaound is required.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 19:25:44 +10:00
Jiahao XU
ca6469ca66
Fix image ver format in Cross.toml
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 19:23:20 +10:00
Jiahao XU
ba5a81d792
Pin image version in Cross.toml
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 19:09:26 +10:00
Jiahao XU
69a23e477a
Add workaround libclang.so
not found error when cross bulding
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 18:19:09 +10:00
Jiahao XU
84d8b9295f
Set profile.release.strip
to symbols
in Cargo.toml
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 17:39:33 +10:00
Jiahao XU
7b39239729
Revert "Set RUSTFLAGS
to -Cstrip=symbols
in job build
"
...
This reverts commit c3c1c97dd3
.
2022-05-31 17:39:19 +10:00
Jiahao XU
c3c1c97dd3
Set RUSTFLAGS
to -Cstrip=symbols
in job build
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 17:31:59 +10:00
Jiahao XU
a378be8bc6
Revert "Run strip
as a separate step in job build
"
...
This reverts commit 8bdd089775
.
2022-05-31 17:30:50 +10:00
Jiahao XU
8bdd089775
Run strip
as a separate step in job build
...
except on windows.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 17:23:17 +10:00
Jiahao XU
3411812ee5
Revert "Set RUSTFLAGS
to -Zstrip=symbols
in job build
"
...
This reverts commit 62b5ecbe83
.
2022-05-31 17:22:17 +10:00
Jiahao XU
62b5ecbe83
Set RUSTFLAGS
to -Zstrip=symbols
in job build
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 17:18:51 +10:00
Jiahao XU
c989ed0823
Optimize release build
...
by enabling lto, setting `codegen-units` to 1 and setting panic behavior
to `abort`.
On my `aarch64-apple-darwin` with `rustc 1.61.0`, this reduces the size
of binary from 7.8M to 4.9M
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 17:12:15 +10:00
Jiahao XU
a59057b932
Update README.md
: Tar.zst
is now supported by cargo-binstall
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 16:59:00 +10:00
Jiahao XU
5b6634def6
Add new variant PkgFmt::Tzstd
and update helpers::extract
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 16:50:55 +10:00
Jiahao XU
f555c75e23
Update Cargo.lock
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 16:50:36 +10:00
Jiahao XU
9e35efbd10
Add new dep zstd v0.10.0
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 16:43:45 +10:00
Félix Saparelli
f0e7fa0111
Merge pull request #147 from passcod/cli-overrides
...
Closes #70
Fixes #69
2022-05-31 18:16:41 +12:00
Félix Saparelli
2f9be15c30
Fix old template specifier in readme
2022-05-31 18:01:29 +12:00
Lea Fairbanks
19d0616324
Add cli overrides
2022-05-31 18:00:07 +12:00
Félix Saparelli
09129a4f7f
Merge pull request #146 from passcod/tempfile
...
Use tempfile over tempdir
2022-05-31 17:58:58 +12:00
Félix Saparelli
fd029bc583
Merge pull request #145 from passcod/apple-m1
2022-05-31 17:39:17 +12:00
Félix Saparelli
fbf26634c9
Formatting
2022-05-31 17:37:40 +12:00
Félix Saparelli
e8464aba3d
Use tempfile over tempdir
...
Closes #135
2022-05-31 17:37:34 +12:00
Félix Saparelli
151998a1eb
Cleanup yaml
2022-05-31 17:25:34 +12:00
Félix Saparelli
bee95cdb27
Fix markdown
2022-05-31 17:24:52 +12:00
Félix Saparelli
22f509fb72
Add macos arm64 to readme
2022-05-31 17:24:42 +12:00
Félix Saparelli
c1fd2398f0
Add linux arm64 to readme
2022-05-31 17:24:04 +12:00
Félix Saparelli
3a1d42fd6b
Default to musl builds on the readme
2022-05-31 17:19:56 +12:00
Félix Saparelli
832c51f025
Add apple m1 builds
2022-05-31 17:17:04 +12:00
Félix Saparelli
9026554471
Merge pull request #143 from NobodyXu/use-static-musl-libc-for-prebuilt
2022-05-31 17:00:53 +12:00
Jiahao XU
9ed7dc6970
Rm step for installing musl-tool
in job test
...
The job `test` for target `x86_64-unknown-linux-musl` requires
`musl-tool` since there is no pre-built binary present for that target
and thus `cargo-binstall` automatically fall back to `cargo-build`.
Currently, the test for it also failed because `libssl-1.1` is not
present.
However, since this will be fixed once a new release of `cargo-binstall`
is published, this step should not be present.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 14:40:45 +10:00
Jiahao XU
aabf5c75a2
Add target aarch64
to job build
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 14:24:08 +10:00
Jiahao XU
9c9b8e55b3
Use cross
to for target armv7-unknown-linux-gnueabihf
...
in job `build`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 14:08:51 +10:00
Jiahao XU
187ac2d20e
Refactor: Avoid duplicate job for building release
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 13:53:03 +10:00
Jiahao XU
6172bcb126
Fix step "Configure toolchain" in job test
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 13:08:13 +10:00
Jiahao XU
feb03e37d2
Fix job test
for x86_64-unknown-linux-musl
...
Install corresponding rustup target and musl-tools
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:58:35 +10:00
Jiahao XU
d1c6a07a48
Fix typo in path of step "Configure caching"
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:47:02 +10:00
Jiahao XU
ec5ab955b3
Fix use of ||
in if
in steps
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:44:18 +10:00
Jiahao XU
7796f8760a
Enable use-cross
for job "Build release for arm musl target"
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:40:48 +10:00
Jiahao XU
37ddf3c435
Merge duplicate steps with different if
using ||
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:37:49 +10:00