if: matrix.os == 'windows-latest'
- name: Install llvm-nm (Windows)
- shell: bash
run: |
rustup update stable
rustup default stable
rustup component add llvm-tools-preview
+ if: matrix.os == 'windows-latest'
+
+ - name: Register llvm-nm in environment (Windows)
+ shell: bash
+ run: |
echo "WASM_NM=$(rustc --print sysroot|sed 's|C:|/c|'|sed 's|\\|/|g')/lib/rustlib/x86_64-pc-windows-msvc/bin/llvm-nm.exe" >> $GITHUB_ENV
if: matrix.os == 'windows-latest'