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.

преди 4 години
преди 4 години
преди 4 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: x86 Release
  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: 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: Release build
  45. path: ${{runner.workspace}}/build/aptdec