diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index cb88a07e64e5f5758a90631b6faeea39d2adfc56..055561f1d5106d9423bf6023f4bca3226982ba66 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -57,7 +57,7 @@ jobs:
           sudo apt-get install -y libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libappindicator3-dev librsvg2-dev libayatana-appindicator3-dev
       
       - name: Install ARM64 toolchain (windows only)
-        if: startsWith(matrix.os, 'windows-')
+        if: startsWith(github.event.inputs.os, 'windows-')
         run: |
           rustup target add aarch64-pc-windows-msvc
 
@@ -87,7 +87,7 @@ jobs:
           TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
       
       - name: Tauri build arm64 (windows only)
-        if: startsWith(matrix.os, 'windows-')
+        if: startsWith(github.event.inputs.os, 'windows-')
         uses: tauri-apps/tauri-action@0e558392ccadcb49bcc89e7df15a400e8f0c954d
         # enable cache even though failed
         # continue-on-error: true