c-cpp.yml 1019 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: CI
  2. on:
  3. push:
  4. branches: [ "master" ]
  5. pull_request:
  6. branches: [ "master" ]
  7. workflow_dispatch:
  8. jobs:
  9. included:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: update
  14. run: |
  15. sudo apt update
  16. sudo apt install gfortran-11 gcc-11 python3
  17. - name: configure
  18. run: cmake .
  19. env:
  20. FC: gfortran-11
  21. CXX: g++-11
  22. CC: gcc-11
  23. - name: build
  24. run: make
  25. - name: test
  26. run: ctest --output-on-failure
  27. # rebuild:
  28. # runs-on: ubuntu-latest
  29. # steps:
  30. # - uses: actions/checkout@v3
  31. # - name: update
  32. # run: |
  33. # sudo apt update
  34. # sudo apt install gcc-11 gfortran-11 python3 guile-3.0
  35. # - name: configure
  36. # run: cmake .
  37. # env:
  38. # FC: gfortran-11
  39. # CXX: g++-11
  40. # CC: gcc-11
  41. # LD_LIBRARY_PATH: $LD_LIBRARY_PATH:. # for test/test-3
  42. # - name: build
  43. # run: make
  44. # - name: test
  45. # run: ctest --output-on-failure