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.

workflow-for-fuzzing-build.yml 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: workflow-for-fuzzing-build
  2. on:
  3. workflow_call:
  4. jobs:
  5. build:
  6. runs-on: ubuntu-latest
  7. name: Build synth_espeak on ${{ matrix.arch }}
  8. # Do not run this job on any forked repos
  9. if: github.repository == 'espeak-ng/espeak-ng'
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. arch: [x86-32, x86-64]
  14. include:
  15. - arch: x86-32
  16. archdeps: "gcc-multilib g++-multilib libpcaudio-dev:i386 libsonic-dev:i386 libc6-dbg:i386"
  17. archconfig: "--host=i686-linux-gnu"
  18. archconfigflags: "-m32"
  19. - arch: x86-64
  20. archdeps: ""
  21. archconfigflags: ''
  22. steps:
  23. - uses: actions/checkout@v4
  24. - uses: firebuild/apt-eatmydata-action@v1
  25. - name: enable 32bit architecture
  26. run: sudo dpkg --add-architecture i386
  27. if: matrix.arch == 'x86-32'
  28. - name: dependencies
  29. run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown clang llvm ${{ matrix.archdeps }}
  30. - name: autoconf
  31. run: ./autogen.sh ; chmod -x INSTALL m4/*.m4
  32. - name: configure
  33. run: CC="clang ${{ matrix.archconfigflags }}" CXX="clang++ ${{ matrix.archconfigflags }}"
  34. CFLAGS="-fsanitize=address,undefined -fstack-protector-strong -g -Og -fno-omit-frame-pointer"
  35. CXXFLAGS="${{ matrix.archconfigflags }} -fsanitize=address,undefined -fstack-protector-strong -g -Og -fno-omit-frame-pointer"
  36. LDFLAGS="-fsanitize=address,undefined -lubsan"
  37. ./configure ${{ matrix.archconfig }} --with-libfuzzer
  38. - name: Store the fuzzer config
  39. if: ${{ failure() }}
  40. uses: actions/upload-artifact@v4
  41. with:
  42. name: config-${{ matrix.arch }}.log
  43. path: config.log
  44. - name: make
  45. run: make -j
  46. - uses: actions/cache@v4
  47. with:
  48. path: /home/runner/work/espeak-ng/espeak-ng
  49. key: build-${{ matrix.arch }}-${{ github.sha }}