improve code for build

This commit is contained in:
houseme
2025-04-07 17:47:43 +08:00
parent 212ec9ca69
commit 96625b42ff
2 changed files with 3 additions and 11 deletions
-1
View File
@@ -33,7 +33,6 @@ runs:
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: ${{ inputs.rust-version }} toolchain: ${{ inputs.rust-version }}
targets: x86_64-unknown-linux-musl
components: rustfmt, clippy components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
+3 -10
View File
@@ -17,16 +17,9 @@ jobs:
matrix: matrix:
variant: variant:
- { profile: dev, target: x86_64-unknown-linux-musl, glibc: "default" } - { profile: dev, target: x86_64-unknown-linux-musl, glibc: "default" }
- { - { profile: release, target: x86_64-unknown-linux-musl, glibc: "default" }
profile: release, - { profile: release, target: x86_64-unknown-linux-gnu, glibc: "default" }
target: x86_64-unknown-linux-musl, - { profile: release, target: x86_64-unknown-linux-gnu, glibc: "2.31" }
glibc: "default",
}
- {
profile: release,
target: x86_64-unknown-linux-musl,
glibc: "2.31",
}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4