riscv64.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: RISCV64
  2. on: [ push, pull_request ]
  3. env:
  4. BUILD_TYPE: Release
  5. jobs:
  6. build_linux:
  7. strategy:
  8. matrix:
  9. platform: [ linux ]
  10. fail-fast: false
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Install build dependencies
  14. run: >
  15. sudo apt-get update &&
  16. sudo apt-get install
  17. gcc-10-riscv64-linux-gnu
  18. g++-10-riscv64-linux-gnu
  19. ninja-build
  20. qemu-user
  21. - name: Checkout dynarmic repo
  22. uses: actions/checkout@v2
  23. - name: Ccache
  24. if: matrix.platform == 'linux'
  25. uses: hendrikmuhs/ccache-action@v1.2
  26. - name: Checkout ext-boost repo
  27. uses: actions/checkout@v2
  28. with:
  29. repository: MerryMage/ext-boost
  30. path: externals/ext-boost
  31. - name: Configure CMake for RISCV64 (Linux)
  32. if: matrix.platform == 'linux'
  33. env:
  34. CC: riscv64-linux-gnu-gcc-10
  35. CXX: riscv64-linux-gnu-g++-10
  36. run: >
  37. cmake
  38. -B ${{github.workspace}}/build-riscv64
  39. -DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
  40. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
  41. -DDYNARMIC_TESTS_USE_UNICORN=0
  42. -DDYNARMIC_USE_LLVM=0
  43. -DDYNARMIC_FRONTENDS=A32
  44. -G Ninja
  45. - name: Build RISCV64
  46. working-directory: ${{github.workspace}}/build-riscv64
  47. run: cmake --build . --config Release
  48. # - name: Basic tests
  49. # if: matrix.platform == 'linux'
  50. # working-directory: ${{github.workspace}}
  51. # run: qemu-riscv64 -L /usr/riscv64-linux-gnu ./build-riscv64/tests/dynarmic_tests -d yes