File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [build ]
2+ target = " x86_64-unknown-linux-musl"
3+
4+ [target .aarch64-unknown-linux-musl ]
5+ linker = " aarch64-linux-musl-gcc"
6+
7+ [target .x86_64-unknown-linux-musl ]
8+ linker = " x86_64-linux-musl-gcc"
Original file line number Diff line number Diff line change @@ -10,13 +10,11 @@ jobs:
1010 - name : Checkout Code
1111 uses : actions/checkout@v4
1212
13- - name : Install Protobuf Compiler
14- run : sudo apt-get update && sudo apt-get install protobuf-compiler -y
13+ - name : Install Protobuf Compiler and Musl
14+ run : sudo apt-get update && sudo apt-get install musl-tools musl-dev protobuf-compiler -y
1515
1616 - name : Install Rust Toolchain
17- uses : dtolnay/rust-toolchain@stable
18- with :
19- components : rustfmt, clippy
17+ run : rustup component add clippy && rustup component add rustfmt && rustup target add x86_64-unknown-linux-musl
2018
2119 - name : Set up cargo cache
2220 uses : actions/cache@v4
3533 run : cargo fmt --check
3634
3735 - name : Clippy
38- run : cargo clippy -- -D warnings
36+ run : cargo clippy -- -D warnings
Original file line number Diff line number Diff line change 1010 - name : Checkout Code
1111 uses : actions/checkout@v4
1212
13- - name : Install Protobuf Compiler
14- run : sudo apt-get update && sudo apt-get install protobuf-compiler -y
13+ - name : Install Protobuf Compiler and Musl
14+ run : sudo apt-get update && sudo apt-get install musl-tools musl-dev protobuf-compiler -y
15+
16+ - name : Install Rust Toolchain
17+ run : rustup component add clippy && rustup component add rustfmt && rustup target add x86_64-unknown-linux-musl
1518
1619 - name : Set up cargo cache
1720 uses : actions/cache@v4
Original file line number Diff line number Diff line change 11clippy :
2- cargo clippy
2+ cargo clippy --target=x86_64-unknown-linux-musl --all
33
44all : clippy
55 cargo build --target=x86_64-unknown-linux-musl --all
You can’t perform that action at this time.
0 commit comments