verify.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: 'yuzu verify'
  2. on:
  3. pull_request:
  4. branches: [ master ]
  5. jobs:
  6. format:
  7. name: 'verify formatting'
  8. runs-on: ubuntu-latest
  9. container:
  10. image: yuzuemu/build-environments:linux-clang-format
  11. options: -u 1001
  12. steps:
  13. - uses: actions/checkout@v2
  14. with:
  15. submodules: false
  16. - name: 'Verify Formatting'
  17. run: bash -ex ./.ci/scripts/format/script.sh
  18. build:
  19. name: 'test build'
  20. needs: format
  21. runs-on: ubuntu-latest
  22. strategy:
  23. fail-fast: false
  24. matrix:
  25. include:
  26. - type: clang
  27. image: linux-fresh
  28. - type: linux
  29. image: linux-fresh
  30. - type: windows
  31. image: linux-mingw
  32. container:
  33. image: yuzuemu/build-environments:${{ matrix.image }}
  34. options: -u 1001
  35. steps:
  36. - uses: actions/checkout@v2
  37. with:
  38. submodules: recursive
  39. fetch-depth: 0
  40. - name: Set up cache
  41. uses: actions/cache@v2
  42. with:
  43. path: ~/.ccache
  44. key: ${{ runner.os }}-${{ matrix.image }}-${{ github.sha }}
  45. restore-keys: |
  46. ${{ runner.os }}-${{ matrix.image }}-
  47. - name: Build
  48. run: ./.ci/scripts/${{ matrix.type }}/docker.sh
  49. env:
  50. ENABLE_COMPATIBILITY_REPORTING: "ON"