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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 clean
  29. make GBDK_HOME=${{github.workspace}}/gbdk all -j $(nproc)
  30. mv duality.gb duality_debug.gb
  31. mv build/duality.map duality_debug.map
  32. make clean
  33. make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 all -j $(nproc)
  34. mv build/duality.map duality.map
  35. - name: Upload a Build Artifact
  36. uses: actions/upload-artifact@v4.0.0
  37. with:
  38. path: ${{github.workspace}}/repo/duality*
  39. if-no-files-found: error
  40. - name: Upload release files
  41. if: startsWith(github.ref, 'refs/tags/')
  42. uses: softprops/action-gh-release@v1
  43. with:
  44. files: |
  45. ${{github.workspace}}/repo/duality.gb
  46. ${{github.workspace}}/repo/duality.map
  47. ${{github.workspace}}/repo/duality_debug.gb
  48. ${{github.workspace}}/repo/duality_debug.map