Skip to content

Commit

Permalink
build(config): 🔧 optimize build config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Mar 14, 2024
1 parent 3d25eac commit 4c7af14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[alias]
xtask = "run --package xtask --"

[build]
rustflags = ["-Clink-arg=-fuse-ld=mold"]
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get upgrade -y && \
sudo apt-get install -y protobuf-compiler libprotobuf-dev
sudo apt-get install -y protobuf-compiler libprotobuf-dev mold
- name: Run clippy lint
run: cargo hack clippy --all-targets --each-feature --workspace
- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,4 @@ clap_mangen = "0.2.20"
codegen-units = 1
lto = true
strip = true
panic = "abort"

0 comments on commit 4c7af14

Please sign in to comment.