Lemma is an Electromagnetics API
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

cmake.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: CMake
  2. on: [push]
  3. env:
  4. # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
  5. BUILD_TYPE: Release
  6. jobs:
  7. build:
  8. # The CMake configure and build commands are platform agnostic and should work equally
  9. # well on Windows or Mac. You can convert this to a matrix build if you need
  10. # cross-platform coverage.
  11. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Create Build Environment
  16. # Some projects don't allow in-source building, so create a separate build directory
  17. # We'll use this as our working directory for all subsequent commands
  18. run: cmake -E make_directory ${{runner.workspace}}/build
  19. - name: Configure CMake
  20. # Use a bash shell so we can use the same syntax for environment variable
  21. # access regardless of the host operating system
  22. shell: bash
  23. working-directory: ${{runner.workspace}}/build
  24. # Note the current convention is to use the -S and -B options here to specify source
  25. # and build directories, but this is only available with CMake 3.13 and higher.
  26. # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
  27. run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
  28. - name: Build
  29. working-directory: ${{runner.workspace}}/build
  30. shell: bash
  31. # Execute the build. You can specify a specific target with "--target <NAME>"
  32. run: cmake --build . --config $BUILD_TYPE
  33. - name: Test
  34. working-directory: ${{runner.workspace}}/build
  35. shell: bash
  36. # Execute tests defined by the CMake configuration.
  37. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
  38. run: ctest -C $BUILD_TYPE