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.

docs.yml 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Web
  2. # only build single instance of docs for latest main branch
  3. on:
  4. push:
  5. branches:
  6. - master
  7. jobs:
  8. deploy:
  9. runs-on: ubuntu-latest
  10. permissions:
  11. contents: write
  12. pages: write
  13. id-token: write
  14. steps:
  15. - name: Install dependencies
  16. working-directory: ${{github.workspace}}
  17. shell: bash
  18. run: |
  19. wget https://github.com/gbdk-2020/gbdk-2020/releases/download/4.4.0/gbdk-linux64.tar.gz
  20. tar -xzf gbdk-linux64.tar.gz
  21. - name: Checkout repo
  22. uses: actions/checkout@v4
  23. with:
  24. path: repo
  25. fetch-depth: 0
  26. - name: Get core count
  27. id: core_count
  28. run : cat /proc/cpuinfo | grep processor | wc -l
  29. - name: Build
  30. working-directory: ${{github.workspace}}/repo
  31. shell: bash
  32. run: |
  33. make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 clean all -j $(nproc)
  34. cp duality.gb docs
  35. - name: Setup Pages
  36. uses: actions/configure-pages@v2
  37. - name: Upload artifact
  38. uses: actions/upload-pages-artifact@v3
  39. with:
  40. path: 'docs'
  41. - name: Deploy to GitHub Pages
  42. id: deployment
  43. uses: actions/deploy-pages@v4