GameBoy (Color) port of the GTA San Andreas arcade game Duality
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.yml 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: ROM
  2. # build for each push and pull request
  3. on: [push, pull_request]
  4. jobs:
  5. build:
  6. runs-on: ubuntu-latest
  7. permissions:
  8. contents: write
  9. steps:
  10. - name: Install dependencies
  11. working-directory: ${{github.workspace}}
  12. shell: bash
  13. run: |
  14. wget https://github.com/gbdk-2020/gbdk-2020/releases/download/4.4.0/gbdk-linux64.tar.gz
  15. tar -xzf gbdk-linux64.tar.gz
  16. - name: Checkout repo
  17. uses: actions/checkout@v4
  18. with:
  19. path: repo
  20. fetch-depth: 0
  21. - name: Get core count
  22. id: core_count
  23. run : cat /proc/cpuinfo | grep processor | wc -l
  24. - name: Build
  25. working-directory: ${{github.workspace}}/repo
  26. shell: bash
  27. run: |
  28. make GBDK_HOME=${{github.workspace}}/gbdk clean all -j $(nproc)
  29. mv duality.gb duality_debug.gb
  30. mv build/duality.map duality_debug.map
  31. make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 clean all -j $(nproc)
  32. mv build/duality.map duality.map
  33. - name: Upload a Build Artifact
  34. uses: actions/upload-artifact@v4.0.0
  35. with:
  36. path: ${{github.workspace}}/repo/duality*
  37. if-no-files-found: error
  38. - name: Upload release files
  39. if: startsWith(github.ref, 'refs/tags/')
  40. uses: softprops/action-gh-release@v1
  41. with:
  42. files: |
  43. ${{github.workspace}}/repo/duality.gb
  44. ${{github.workspace}}/repo/duality.map
  45. ${{github.workspace}}/repo/duality_debug.gb
  46. ${{github.workspace}}/repo/duality_debug.map