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.2KB

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