windowsbuild.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Build Windows 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 mingw-w64 gcc make tcl
  16. - name: Configure MinGW to use Posix threads
  17. run: |
  18. sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
  19. sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
  20. sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
  21. sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
  22. - name: Make
  23. run: make OPENMSX_TARGET_CPU=x86_64 OPENMSX_TARGET_OS=mingw-w64 OPENMSX_FLAVOUR=opt staticbindist
  24. - name: Determine version
  25. id: get_version
  26. run: |
  27. OPENMSX_VERSION=`python3 build/version.py`
  28. echo ::set-output name=OPENMSX_VERSION::$OPENMSX_VERSION
  29. - name: Create redistributable zip
  30. run: cd derived/x86_64-mingw-w64-opt-3rd/bindist/install && zip -r ../openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-mingw-w64-opt.zip *
  31. - name: Upload redistributable zip
  32. uses: actions/upload-artifact@v1
  33. with:
  34. name: openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-mingw-w64-opt.zip
  35. path: derived/x86_64-mingw-w64-opt-3rd/bindist/openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-x86_64-mingw-w64-opt.zip