Browse Source

windist: Don't include 64-bit MSVCR DLLs.

Keir Fraser 4 years ago
parent
commit
2180ae05c5
1 changed files with 31 additions and 0 deletions
  1. 31 0
      .github/workflows/ci.yml

+ 31 - 0
.github/workflows/ci.yml

@@ -92,3 +92,34 @@ jobs:
       with:
         name: Greaseweazle.CI.${{ steps.vars.outputs.sha_short }}
         path: Greaseweazle-${{ steps.vars.outputs.sha_short }}-win.zip
+
+  finalise:
+    needs: build-windows
+    runs-on: ubuntu-20.04
+    steps:
+
+    - uses: actions/checkout@v2
+
+    - name: Set environment variables
+      id: vars
+      run: |
+        echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
+
+    - name: Download artifacts
+      uses: actions/download-artifact@v2
+      with:
+        name: Greaseweazle.CI.${{ steps.vars.outputs.sha_short }}
+
+    - name: Remove 64-bit DLLS
+      run: |
+        export VER=${{ steps.vars.outputs.sha_short }}
+        unzip Greaseweazle-$VER-win.zip
+        find . -name 'api-ms-win-crt-*' | xargs rm
+        rm Greaseweazle-$VER-win.zip
+        zip -r Greaseweazle-$VER-win.zip Greaseweazle-$VER
+
+    - name: Upload finalised artifacts
+      uses: actions/upload-artifact@v2
+      with:
+        name: Greaseweazle.CI.${{ steps.vars.outputs.sha_short }}
+        path: Greaseweazle-${{ steps.vars.outputs.sha_short }}-win.zip