|
@@ -20,6 +20,29 @@ jobs:
|
|
|
AhMyth-Server
|
|
AhMyth-Server
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
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)
|
|
- name: Install apt dependencies (need for Windows build)
|
|
|
run: |
|
|
run: |
|
|
|
apt update && sudo apt-get install --no-install-recommends -y wine mono gcc-multilib g++-multilib
|
|
apt update && sudo apt-get install --no-install-recommends -y wine mono gcc-multilib g++-multilib
|