3535 ${{ runner.os }}-cargo-
3636
3737 - name : Install stable toolchain
38- uses : dtolnay/rust-toolchain@stable
38+ uses : dtolnay/rust-toolchain@0b1efabc08b657293548b77fb76cc02d26091c7e
3939 with :
40+ toolchain : stable
4041 components : rustfmt, clippy
4142
4243 - name : Cargo fmt
@@ -58,31 +59,44 @@ jobs:
5859 - runner : ubuntu-latest
5960 target : x86_64-unknown-linux-musl
6061 archive : tar.gz
62+ rustflags : -C target-feature=-crt-static
63+ linux : true
64+ - runner : ubuntu-latest
65+ target : x86_64-unknown-linux-gnu
66+ archive : tar.gz
67+ rustflags : " "
68+ linux : true
6169 - runner : windows-latest
6270 target : x86_64-pc-windows-msvc
6371 archive : zip
72+ rustflags : " "
73+ linux : false
6474 runs-on : ${{ matrix.runner }}
6575 env :
6676 TARGET : ${{ matrix.target }}
67- RUSTFLAGS : -C target-feature=+crt-static
77+ RUSTFLAGS : ${{ matrix.rustflags }}
6878 steps :
6979 - name : Checkout
7080 uses : actions/checkout@v6
7181
7282 - name : Install stable toolchain
73- uses : dtolnay/rust-toolchain@stable
83+ uses : dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
7484 with :
85+ toolchain : stable
7586 target : ${{ matrix.target }}
7687
77- - name : Install musl toolchain and native deps
78- if : matrix.target == 'x86_64-unknown- linux-musl'
88+ - name : Install Linux build deps
89+ if : matrix.linux
7990 run : |
8091 sudo apt-get update
8192 sudo apt-get install -y \
82- musl-tools musl-dev pkg-config \
93+ pkg-config \
8394 libx11-dev libxcursor-dev libxrandr-dev libxi-dev \
8495 libgl1-mesa-dev libasound2-dev libudev-dev \
8596 libwayland-dev libxkbcommon-dev
97+ if [ "${TARGET}" = "x86_64-unknown-linux-musl" ]; then
98+ sudo apt-get install -y musl-tools musl-dev
99+ fi
86100
87101 - name : Cache cargo
88102 uses : actions/cache@v4
0 commit comments