Change build target to x86_64-unknown-linux-musl and update system dependencies

- Change build target from `x86_64-unknown-linux-gnu` to `x86_64-unknown-linux-musl`
- Default install `x86_64-unknown-linux-musl` toolchain in setup action
- Add `musl-tools` and `build-essential` to system dependencies
This commit is contained in:
houseme
2025-04-07 16:55:14 +08:00
parent 4136dd5393
commit 5204cb67d8
2 changed files with 14 additions and 11 deletions

View File

@@ -21,6 +21,8 @@ runs:
run: |
sudo apt update
sudo apt install -y \
musl-tools \
build-essential \
lld \
libdbus-1-dev \
libwayland-dev \
@@ -38,6 +40,7 @@ runs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ inputs.rust-version }}
targets: x86_64-unknown-linux-musl
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2