Commit graph

209 commits

Author SHA1 Message Date
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
Jiahao XU
38849734b2
Remove steps to install libssl in job build
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:36:40 +10:00
Jiahao XU
7455037190
Add x86_64-unknown-linux-musl as target to job test
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 00:36:36 +10:00
Jiahao XU
bcc8057705
Add back {x86_64, armv7}unknown-linux-gnu{eabihf} targets
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 00:35:03 +10:00
Jiahao XU
cba8a05c82
Fix job "Install cross toolchain (armv7)"
Install "gcc-arm-linux-gnueabihf" as "gcc-arm-linux-musleabihf" does not
exist.

Also use `apt-get` instead of `apt`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-30 17:19:10 +10:00
Jiahao XU
4e1cb0fdcf
Compile prebuilt binaries using musl target
So that it is statically linked and does not depend on any dynamic
library and can be run anywhere.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-30 17:13:57 +10:00
Ryan
c2aab16940
Merge pull request #128 from somehowchris/feature/remove-git-index
feat: remove crates-index dependency
2022-05-02 10:39:31 +12:00
Christof Weickhardt
256e695aa5 feat: remove crates-index dependency 2022-05-01 07:45:23 +00:00
Ryan
2d68a74637
Merge pull request #126 from somehowchris/feature/crates_io_api-rustls
feat: use rustls for crates_io_api
2022-05-01 11:44:18 +12:00
Ryan
26711f3ae6
Merge pull request #125 from somehowchris/fix/package-version-abort-logic
fix: abort install for specific version if not confirmed
2022-05-01 11:44:01 +12:00
Ryan
60fc30461e
Merge pull request #122 from somehowchris/feature/ignore-yanked
fix: ignore crate version if yanked
2022-05-01 11:43:41 +12:00
Christof Weickhardt
62577a72f3 feat: use rustls for crates_io_api 2022-04-30 09:24:32 +00:00
Christof Weickhardt
42e327477b fix: abort install for specific version if not confirmed 2022-04-30 09:20:15 +00:00
Christof Weickhardt
5f9c673ea5 fix: ignore crate version if yanked 2022-04-29 11:10:05 +00:00
Félix Saparelli
77f51aff84 (cargo-release) version 0.7.0 2022-04-29 10:23:52 +12:00
Félix Saparelli
dd33a1d66e Mention source fallback in readme 2022-04-29 10:21:09 +12:00
Félix Saparelli
eeaba76b5f
Fallback to installing from source (#114)
Closes #108
2022-04-29 10:15:43 +12:00
Félix Saparelli
d68b0a209a
Clarify --version usage and add a warning at runtime (#116)
Fixes #113
2022-04-29 09:33:54 +12:00
Félix Saparelli
1757dc5344
Make fetcher creating infallible (#118)
Fixes #109
2022-04-29 09:24:46 +12:00