Browse Source

Added installing wine and mono for Windows build, caches

Maybe use native Windows\OSX worker later
Denis 5 năm trước cách đây
mục cha
commit
5a84edd976
1 tập tin đã thay đổi với 23 bổ sung0 xóa
  1. 23 0
      .github/workflows/build.yml

+ 23 - 0
.github/workflows/build.yml

@@ -20,6 +20,29 @@ jobs:
           AhMyth-Server
     runs-on: ubuntu-latest
     steps:
+      - name: Cache node_modules
+        uses: actions/cache@v2
+        with:
+          path: ~/.npm
+          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+          restore-keys: |
+            ${{ runner.os }}-node-
+      - name: Cache Electron
+        uses: actions/cache@v1
+        with:
+          path: ${{ github.workspace }}/.cache/electron
+          key: ${{ runner.os }}-electron-cache-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
+          restore-keys: |
+            ${{ runner.os }}-electron-cache-
+
+      - name: Cache Electron-Builder
+        uses: actions/cache@v1
+        with:
+          path: ${{ github.workspace }}/.cache/electron-builder
+          key: ${{ runner.os }}-electron-builder-cache-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json'')) }}
+          restore-keys: |
+            ${{ runner.os }}-electron-builder-cache-
+
       - name: Install apt dependencies (need for Windows build)
         run: |
           apt update && sudo apt-get install --no-install-recommends -y wine mono gcc-multilib g++-multilib