ci.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: CI
  2. on:
  3. push:
  4. branches: [main]
  5. jobs:
  6. build:
  7. runs-on: ${{ matrix.os }}
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. os: [macos-latest, ubuntu-latest]
  12. env:
  13. CC: clang
  14. CXX: clang++
  15. steps:
  16. - uses: actions/checkout@v2
  17. - run: make && make test
  18. shell: bash
  19. build-clang:
  20. runs-on: ubuntu-latest
  21. strategy:
  22. fail-fast: false
  23. matrix:
  24. tag: [9, 10, 11, 12, 13]
  25. env:
  26. CC: clang-${{ matrix.tag }}
  27. CXX: clang++-${{ matrix.tag }}
  28. steps:
  29. - uses: actions/checkout@v2
  30. - name: Install Clang ${{ matrix.tag }}
  31. run: |
  32. wget https://apt.llvm.org/llvm.sh
  33. chmod +x ./llvm.sh
  34. sudo ./llvm.sh ${{ matrix.tag }}
  35. shell: bash
  36. - run: make && make test
  37. shell: bash
  38. build-gcc:
  39. runs-on: ubuntu-latest
  40. container: gcc:${{ matrix.tag }}
  41. strategy:
  42. fail-fast: false
  43. matrix:
  44. tag: [4, 5, 6, 7, 8, 9, 10, 11]
  45. env:
  46. CC: gcc
  47. CXX: g++
  48. steps:
  49. - uses: actions/checkout@v2
  50. - run: make && make test
  51. shell: bash