-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): update goreleaser post script
- Loading branch information
1 parent
be17f63
commit d3a40a4
Showing
5 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# rustup target add x86_64-apple-darwin | ||
# rustup target add x86_64-unknown-linux-gnu | ||
# rustup target add aarch64-apple-darwin | ||
cargo install cross --git https://github.com/cross-rs/cross | ||
|
||
docker run --rm -v `pwd`:/app rust:slim-buster sh -c 'cd /app rustup target x86_64-unknown-linux-gnu && cargo build --release --target=x86_64-unknown-linux-gnu --bin proksi' | ||
cargo build --release --target=aarch64-apple-darwin --bin proksi | ||
cross build --release --target=x86_64-unknown-linux-gnu | ||
cross build --release --target=x86_64-apple-darwin | ||
|
||
mkdir -p dist/darwin_amd64 && cp target/x86_64-apple-darwin/release/proksi dist/darwin_amd64 | ||
mkdir -p dist/linux_amd64 && cp target/x86_64-unknown-linux-gnu/release/proksi dist/linux_amd64 | ||
mkdir -p dist/proksi_darwin_amd64_v1 | ||
mkdir -p dist/proksi_linux_amd64_v1 | ||
|
||
cp target/x86_64-apple-darwin/release/proksi dist/proksi_darwin_amd64 | ||
cp target/x86_64-unknown-linux-gnu/release/proksi dist/proksi_linux_amd64_v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
disallowed-methods = [ | ||
{ path = "std::path::Path::display", reason = "incorrect handling of non-Unicode paths, use path.to_utf8() or debug (`{path:?}`) instead" }, | ||
] | ||
allow-unwrap-in-tests = true | ||
msrv = "1.78.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
condense_wildcard_suffixes = true | ||
brace_style = "PreferSameLine" | ||
fn_single_line = true | ||
where_single_line = true | ||
use_field_init_shorthand = true | ||
reorder_impl_items = true | ||
edition = "2021" | ||
reorder_imports = true | ||
newline_style = "Unix" | ||
format_code_in_doc_comments = true |