You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 rivejä
1.7 KiB

  1. name: Release Build
  2. on:
  3. push:
  4. branches:
  5. - master
  6. env:
  7. BUILD_TYPE: Release
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Create Build Environment
  14. # Some projects don't allow in-source building, so create a separate build directory
  15. # We'll use this as our working directory for all subsequent commands
  16. run: cmake -E make_directory ${{runner.workspace}}/build
  17. - name: Configure CMake
  18. # Use a bash shell so we can use the same syntax for environment variable
  19. # access regardless of the host operating system
  20. shell: bash
  21. working-directory: ${{runner.workspace}}/build
  22. # Note the current convention is to use the -S and -B options here to specify source
  23. # and build directories, but this is only available with CMake 3.13 and higher.
  24. # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
  25. run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
  26. - name: Build
  27. working-directory: ${{runner.workspace}}/build
  28. shell: bash
  29. # Execute the build. You can specify a specific target with "--target <NAME>"
  30. run: cmake --build . --config $BUILD_TYPE
  31. # Tests are still WIP
  32. # - name: Test
  33. # working-directory: ${{runner.workspace}}/build
  34. # shell: bash
  35. # # Execute tests defined by the CMake configuration.
  36. # # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
  37. # run: ctest -C $BUILD_TYPE
  38. - name: Upload compilied binary
  39. uses: actions/upload-artifact@v2
  40. with:
  41. name: Release build
  42. path: ${{runner.workspace}}/build/aptdec