@@ -83,14 +83,22 @@ jobs:
8383 nodejs
8484 npm
8585 go-task
86+ curl
8687 - name : Install Linux dependencies (glibc)
8788 if : runner.os == 'Linux' && !matrix.settings.alpine
8889 run : |
8990 sudo apt-get update
9091 sudo apt-get install -y libcups2-dev pkg-config clang
91- - name : Prepare Rust toolchain (musl)
92+ - name : Install Rust toolchain in Alpine (musl)
9293 if : matrix.settings.alpine
93- run : rustup target add ${{ matrix.settings.target }}
94+ run : |
95+ # Install rustup
96+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
97+ source $HOME/.cargo/env
98+ # Install toolchain and components from rust-toolchain.toml
99+ rustup show
100+ # Add musl target
101+ rustup target add ${{ matrix.settings.target }}
94102 - name : Install dependencies
95103 run : npm ci
96104 - name : Build N-API module
@@ -208,13 +216,25 @@ jobs:
208216 packages : >
209217 cups-dev
210218 go-task
219+ nodejs
220+ npm
221+ deno
222+ bun
223+ curl
224+ - name : Install Rust toolchain in Alpine (musl)
225+ if : matrix.settings.alpine
226+ run : |
227+ # Install rustup
228+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
229+ source $HOME/.cargo/env
230+ # Install toolchain and components from rust-toolchain.toml
231+ rustup show
211232 - name : Download all N-API binary artifacts
212233 uses : actions/download-artifact@v5
213234 with :
214235 pattern : npm-binaries-*
215236 path : npm-temp
216237 - name : Reconstruct npm directory structure
217- shell : bash
218238 run : |
219239 mkdir -p npm
220240 # Move each platform's files to the correct npm subdirectory
0 commit comments