Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build]
target = "x86_64-unknown-linux-musl"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"

[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"
10 changes: 4 additions & 6 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install Protobuf Compiler
run: sudo apt-get update && sudo apt-get install protobuf-compiler -y
- name: Install Protobuf Compiler and Musl
run: sudo apt-get update && sudo apt-get install musl-tools musl-dev protobuf-compiler -y

- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
run: rustup component add clippy && rustup component add rustfmt && rustup target add x86_64-unknown-linux-musl

- name: Set up cargo cache
uses: actions/cache@v4
Expand All @@ -35,4 +33,4 @@ jobs:
run: cargo fmt --check

- name: Clippy
run: cargo clippy -- -D warnings
run: cargo clippy -- -D warnings
7 changes: 5 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install Protobuf Compiler
run: sudo apt-get update && sudo apt-get install protobuf-compiler -y
- name: Install Protobuf Compiler and Musl
run: sudo apt-get update && sudo apt-get install musl-tools musl-dev protobuf-compiler -y

- name: Install Rust Toolchain
run: rustup component add clippy && rustup component add rustfmt && rustup target add x86_64-unknown-linux-musl

- name: Set up cargo cache
uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
clippy:
cargo clippy
cargo clippy --target=x86_64-unknown-linux-musl --all

all: clippy
cargo build --target=x86_64-unknown-linux-musl --all
Expand Down
Loading