blueloveTH 2 лет назад
Родитель
Сommit
84b05b8cfe
1 измененных файлов с 9 добавлено и 2 удалено
  1. 9 2
      .github/workflows/dylib.yml

+ 9 - 2
.github/workflows/dylib.yml

@@ -8,16 +8,23 @@ jobs:
     - uses: actions/checkout@v3
     - uses: ilammy/msvc-dev-cmd@v1
     - name: Install xmake
+      shell: powershell
       run: |
-        winget install xmake
+        Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicParsing).Content
         xmake --version
-    - name: Compile
+    - name: Compile 01
       shell: bash
       run: |
         mkdir -p output/windows/x86_64
         cd dylib
+    - name: Compile 02
+      shell: powershell
+      run: |
         xmake f -p windows -a x64
         xmake
+    - name: Compile 03
+      shell: bash
+      run: |
         cp build/windows/x64/release/test.dll ../output/windows/x86_64
     - uses: actions/upload-artifact@v3
       with: