Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

55 rader
1.8 KiB

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