multi-compiler.yml 752 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Multiple compilers and versions
  2. on:
  3. workflow_call:
  4. jobs:
  5. my_matrix:
  6. name: Compiler test
  7. strategy:
  8. fail-fast: false
  9. matrix:
  10. include:
  11. - CC: gcc-9
  12. CXX: g++-9
  13. - CC: gcc-10
  14. CXX: g++-10
  15. - CC: gcc-11
  16. CXX: g++-11
  17. - CC: gcc-12
  18. CXX: g++-12
  19. - CC: clang-12
  20. CXX: clang++-12
  21. - CC: clang-13
  22. CXX: clang++-13
  23. - CC: clang-14
  24. CXX: clang++-14
  25. runs-on: ubuntu-latest
  26. steps:
  27. - uses: actions/checkout@v3
  28. - name: Build
  29. env:
  30. CC: ${{ matrix.CC }}
  31. CXX: ${{ matrix.CXX }}
  32. run: ./autogen.sh && ./configure && make && make dist