gcc11.yml 758 B

12345678910111213141516171819202122232425262728293031323334
  1. name: gcc-11
  2. on:
  3. push:
  4. branches: [ "master" ]
  5. pull_request:
  6. branches: [ "master" ]
  7. workflow_dispatch:
  8. jobs:
  9. gcc11:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. cxxflags: ['"-O3 -std=c++20 -DRA_DO_OPT_SMALLVECTOR=0"',
  14. '"-O3 -std=c++20 -DRA_DO_OPT_SMALLVECTOR=1"',
  15. '"-O3 -DRA_DO_CHECK=0 -DNDEBUG -std=c++20"',
  16. '"-O3 -std=c++2b"']
  17. steps:
  18. - uses: actions/checkout@v3
  19. - name: update
  20. run: |
  21. sudo apt update
  22. sudo apt install gcc-11 g++-11
  23. - name: configure
  24. run: CXXFLAGS=${{matrix.cxxflags}} cmake .
  25. env:
  26. CXX: g++-11
  27. CC: gcc-11
  28. - name: make
  29. run: make
  30. - name: make test
  31. run: make test