CI.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # _
  2. # ___ __ _ __ _ _ _(_)
  3. # / __|/ _` |/ _` | | | | |
  4. # \__ \ (_| | (_| | |_| | |
  5. # |___/\__,_|\__, |\__,_|_|
  6. # |___/
  7. #
  8. # Cross-platform library which helps to develop web servers or frameworks.
  9. #
  10. # Copyright (C) 2016-2022 Silvio Clecio <[email protected]>
  11. #
  12. # Sagui library is free software; you can redistribute it and/or
  13. # modify it under the terms of the GNU Lesser General Public
  14. # License as published by the Free Software Foundation; either
  15. # version 2.1 of the License, or (at your option) any later version.
  16. #
  17. # Sagui library is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. # Lesser General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU Lesser General Public
  23. # License along with Sagui library; if not, write to the Free Software
  24. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  25. #
  26. name: CI
  27. on: [push, pull_request]
  28. env:
  29. BUILD_TYPE: Debug
  30. jobs:
  31. build:
  32. runs-on: ubuntu-latest
  33. steps:
  34. - uses: actions/checkout@v2
  35. - name: Install packages
  36. run: |
  37. sudo apt-get -y install libgnutls28-dev libcurl4-gnutls-dev
  38. - name: CMake configure
  39. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTING=ON -DSG_HTTPS_SUPPORT=ON
  40. - name: CMake build
  41. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
  42. - name: CMake test
  43. working-directory: ${{github.workspace}}/build
  44. run: make all test