eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
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.

ci.yml 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. name: CI
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches: [ master ]
  6. pull_request:
  7. branches: [ master ]
  8. jobs:
  9. build:
  10. runs-on: ${{ matrix.os }}
  11. name: Build with ${{ matrix.sanitizer }} sanitizer on ${{ matrix.os }} ${{ matrix.arch }}
  12. strategy:
  13. fail-fast: false
  14. matrix:
  15. os: [ubuntu-latest, macos-latest]
  16. arch: [x86-64, x86-32]
  17. sanitizer: [no, address, leak, memory, thread, undefined, valgrind]
  18. include:
  19. - sanitizer: "no"
  20. deps: ""
  21. configflags: "-g -Og -fno-omit-frame-pointer"
  22. config: ""
  23. build_env: ""
  24. check_env: ""
  25. - sanitizer: "address"
  26. deps: ""
  27. configflags: "-fsanitize=address -g -Og -fno-omit-frame-pointer"
  28. config: ""
  29. build_env: "ASAN_OPTIONS=detect_leaks=0"
  30. check_env: "ASAN_OPTIONS=detect_leaks=0"
  31. - sanitizer: "leak"
  32. deps: ""
  33. configflags: '-fsanitize=leak -g -Og -fno-omit-frame-pointer'
  34. config: ""
  35. build_env: "LSAN_OPTIONS=fast_unwind_on_malloc=0"
  36. check_env: "LSAN_OPTIONS=fast_unwind_on_malloc=0"
  37. - sanitizer: "memory"
  38. deps: "clang"
  39. configenv: "CC=clang CXX=clang++"
  40. configflags: "-fsanitize=memory -fsanitize-memory-track-origins=2 -g -Og -fno-omit-frame-pointer"
  41. config: "--without-pcaudiolib"
  42. build_env: "MSAN_OPTIONS=exitcode=42"
  43. check_env: "MSAN_OPTIONS=exitcode=42"
  44. - sanitizer: "thread"
  45. deps: ""
  46. configflags: "-fsanitize=thread -g -Og -fno-omit-frame-pointer"
  47. config: ""
  48. build_env: ""
  49. check_env: ""
  50. - sanitizer: "undefined"
  51. deps: ""
  52. configflags: "-fsanitize=undefined -g -Og -fno-omit-frame-pointer"
  53. config: ""
  54. build_env: "UBSAN_OPTIONS=halt_on_error=1"
  55. check_env: "UBSAN_OPTIONS=halt_on_error=1"
  56. - sanitizer: "valgrind"
  57. deps: "libtool-bin valgrind"
  58. configflags: '-g -Og -fno-omit-frame-pointer'
  59. config: ""
  60. build_env: 'VALGRIND="libtool --mode=execute valgrind --track-origins=yes --leak-check=full --error-exitcode=1" '
  61. check_env: 'VALGRIND="libtool --mode=execute valgrind --track-origins=yes --leak-check=full --error-exitcode=1" '
  62. - arch: x86-32
  63. archdeps: "gcc-multilib g++-multilib libpcaudio-dev:i386 libsonic-dev:i386 libc6-dbg:i386"
  64. archconfigflags: "-m32"
  65. - arch: x86-64
  66. archdeps: ""
  67. archconfigflags: ''
  68. exclude:
  69. # These are not supported on 32bit
  70. - arch: x86-32
  71. sanitizer: leak
  72. - arch: x86-32
  73. sanitizer: memory
  74. - arch: x86-32
  75. sanitizer: thread
  76. # 32-bit macOS is not supported
  77. - os: macos-latest
  78. arch: x86-32
  79. # These are not supported on macos
  80. - os: macos-latest
  81. sanitizer: leak
  82. - os: macos-latest
  83. sanitizer: memory
  84. - os: macos-latest
  85. sanitizer: valgrind
  86. steps:
  87. - uses: actions/checkout@v2
  88. - name: enable 32bit architecture
  89. run: sudo dpkg --add-architecture i386
  90. if: matrix.arch == 'x86-32'
  91. - name: dependencies-apt
  92. if: matrix.os == 'ubuntu-latest'
  93. run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown ${{ matrix.deps }} ${{ matrix.archdeps }}
  94. - name: dependencies-brew
  95. if: matrix.os == 'macos-latest'
  96. run: brew install libtool automake ronn OJFord/homebrew-formulae/kramdown ${{ matrix.archdeps }}
  97. - name: autoconf
  98. run: ./autogen.sh ; chmod -x INSTALL m4/*.m4
  99. - name: configure
  100. run: ${{ matrix.configenv }}
  101. CFLAGS="${{ matrix.configflags }} ${{ matrix.archconfigflags }}"
  102. CXXFLAGS="${{ matrix.configflags }} ${{ matrix.archconfigflags }}"
  103. ./configure ${{ matrix.config }}
  104. - name: Store the config
  105. if: ${{ failure() }}
  106. uses: actions/upload-artifact@v2
  107. with:
  108. name: config-${{ matrix.arch }}-${{ matrix.sanitizer }}.log
  109. path: config.log
  110. - name: make
  111. run: ${{ matrix.build_env }} make
  112. - name: make check
  113. run: ${{ matrix.check_env }} make check
  114. reprotest:
  115. runs-on: ubuntu-latest
  116. name: Build with reprotest on ${{ matrix.arch }}
  117. strategy:
  118. fail-fast: false
  119. matrix:
  120. arch: [x86-64, x86-32]
  121. include:
  122. - arch: x86-32
  123. archdeps: "gcc-multilib g++-multilib libpcaudio-dev:i386 libsonic-dev:i386 libc6-dbg:i386"
  124. archconfigflags: "-m32"
  125. - arch: x86-64
  126. archdeps: ""
  127. archconfigflags: ''
  128. steps:
  129. - uses: actions/checkout@v2
  130. - name: enable 32bit architecture
  131. run: sudo dpkg --add-architecture i386
  132. if: matrix.arch == 'x86-32'
  133. - name: dependencies
  134. run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown reprotest ${{ matrix.archdeps }}
  135. - name: autoconf
  136. run: ./autogen.sh ; chmod -x INSTALL m4/*.m4
  137. - name: run
  138. run: reprotest 'CFLAGS="${{ matrix.archconfigflags }}" CXXFLAGS="${{ matrix.archconfigflags }}" ./configure --without-gradle && make clean && make && make check && touch success' success
  139. distcheck:
  140. runs-on: ubuntu-latest
  141. name: Run distcheck
  142. steps:
  143. - uses: actions/checkout@v2
  144. - name: dependencies
  145. run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown
  146. - name: autoconf
  147. run: ./autogen.sh ; chmod -x INSTALL m4/*.m4
  148. - name: configure
  149. run: ./configure
  150. - name: make
  151. run: make
  152. - name: make check
  153. run: make check
  154. - name: make dist
  155. run: make dist
  156. - name: unpack
  157. run: mkdir unpack && tar -C unpack -xf *.tar.gz
  158. - name: re-configure
  159. run: cd unpack/espeak-ng-* && ./configure
  160. - name: re-make
  161. run: cd unpack/espeak-ng-* && make
  162. - name: re-make check
  163. run: cd unpack/espeak-ng-* && make check