Skip to content

Commit

Permalink
Merge pull request #5 from zlocate/feature/githubActionsBuild
Browse files Browse the repository at this point in the history
Feature/GitHub actions build
  • Loading branch information
zlocate authored Aug 23, 2020
2 parents 5e07b46 + d15b6c3 commit 6378411
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ name: CI
# events but only for the master branch
on:
push:
branches:
branches:
- feature/githubActionsBuild
- master
- development
release:
Expand All @@ -20,6 +21,33 @@ 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-
- uses: actions/checkout@v2
- name: Setup tmate session
uses: mxschmitt/action-tmate@v2
- name: Install deps
run: sudo apt-get install --no-install-recommends -y wine32 wine64 gcc-multilib g++-multilib || true
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
Expand All @@ -40,4 +68,4 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: AhMyth
path: /dist/
path: /dist/

0 comments on commit 6378411

Please sign in to comment.