GameBoy (Color) port of the GTA San Andreas arcade game Duality
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

build.yml 1.5KB

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 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. name: binaries
  39. path: ${{github.workspace}}/repo/duality*
  40. if-no-files-found: error
  41. - name: Upload release files
  42. if: startsWith(github.ref, 'refs/tags/')
  43. uses: softprops/action-gh-release@v1
  44. with:
  45. files: |
  46. ${{github.workspace}}/repo/duality.gb