linuxbuild.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. name: Build Linux Distributable
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Fetch entire repository
  13. run: git fetch --prune --unshallow
  14. - name: Install prerequisites
  15. run: sudo apt-get install libgl1-mesa-dev
  16. - name: Make
  17. run: make staticbindist
  18. - name: Determine version
  19. id: get_version
  20. run: |
  21. OPENMSX_VERSION=`python3 build/version.py`
  22. echo ::set-output name=OPENMSX_VERSION::$OPENMSX_VERSION
  23. - name: Create redistributable zip
  24. run: |
  25. cd derived/x86_64-linux-opt-3rd/bindist/install
  26. zip -r ../openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-linux-opt-3rd.zip *
  27. - name: Upload redistributable zip
  28. uses: actions/upload-artifact@v1
  29. with:
  30. name: openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-linux-opt-3rd.zip
  31. path: derived/x86_64-linux-opt-3rd/bindist/openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-linux-opt-3rd.zip