build.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # This is a basic workflow to help you get started with Actions
  2. name: CI
  3. # Controls when the action will run. Triggers the workflow on push or pull request
  4. # events but only for the master branch
  5. on:
  6. push:
  7. branches:
  8. - master
  9. - development
  10. release:
  11. types: [created]
  12. jobs:
  13. build:
  14. defaults:
  15. run:
  16. working-directory:
  17. AhMyth-Server
  18. runs-on: ubuntu-latest
  19. steps:
  20. - name: Install apt dependencies (need for Windows build)
  21. run: |
  22. apt update && sudo apt-get install --no-install-recommends -y wine mono gcc-multilib g++-multilib
  23. - uses: actions/checkout@v2
  24. - name: Setup Node.js environment
  25. uses: actions/setup-node@v1.4.3
  26. with:
  27. node-version: 10.x
  28. - name: Install dependencies
  29. run: |
  30. npm i
  31. - name: Build Linux app (32 bit)
  32. run: npm run build:linux32
  33. - name: Build Linux app (64 bit)
  34. run: npm run build:linux64
  35. - name: Build Windows App (32 bit)
  36. run: npm run build:win32
  37. - name: Build Windows App (64 bit)
  38. run: npm run build:win64
  39. - name: Upload - push to artifact files
  40. uses: actions/upload-artifact@v1
  41. with:
  42. name: AhMyth
  43. path: /dist/