From 190e0c46d5937e36f9cf7b285cbbfe53ed73f5ef Mon Sep 17 00:00:00 2001
From: xiaoming <2014500726@smail.xtu.edu.cn>
Date: Sat, 16 Dec 2023 14:15:10 +0800
Subject: [PATCH] ci:update ci action

Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn>
---
 .github/workflows/windows.yml | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 25e83ad..e265be8 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -44,10 +44,18 @@ jobs:
             ${{ runner.os }}-build-
             ${{ runner.os }}-
 
+      - name: Install cmake
+        uses: crazy-max/ghaction-chocolatey@v3
+        with:
+          args: install cmake --no-progress
+
+      - name: Install innosetup
+        uses: crazy-max/ghaction-chocolatey@v3
+        with:
+          args: install innosetup --no-progress
+
       - name: Install prerequisites
         run: |
-          Choco-Install -PackageName innosetup --force
-          Choco-Install -PackageName cmake --force
           $c="C:\opencv4.0.0"
           if(-not (Test-Path $c))
           {