diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f9bf217..793b7f1 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -8,16 +8,18 @@ on: - develop jobs: - build: # 定义一个名为 build 的作业 - runs-on: test # 指定了作业运行的环境 - + build: + runs-on: test steps: + - name: Set PowerShell Execution Policy + run: Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force - - name: Run CMake build and install - run: | - Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process -Force - echo "test_start" - echo "test_end" + - name: Run CMake build and install + shell: powershell + run: | + echo "test_start" + sleep 20 + echo "test_end"