macosbuild.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: Build macOS Distributable
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. runs-on: macos-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Fetch entire repository
  13. run: git fetch --prune --unshallow
  14. - name: Make
  15. run: make staticbindist
  16. - name: Determine version
  17. id: get_version
  18. run: |
  19. OPENMSX_VERSION=`python3 build/version.py`
  20. echo ::set-output name=OPENMSX_VERSION::$OPENMSX_VERSION
  21. - name: Rename redistributable dmg
  22. run: |
  23. cd derived/x86_64-darwin-opt-3rd
  24. mv openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-mac-x86_64-bin.dmg openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-darwin-opt-3rd.dmg
  25. - name: Upload redistributable dmg
  26. uses: actions/upload-artifact@v1
  27. with:
  28. name: openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-darwin-opt-3rd.dmg
  29. path: derived/x86_64-darwin-opt-3rd/openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-darwin-opt-3rd.dmg