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.

build.yml 2.4 KiB

2 years ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. name: Build
  2. on:
  3. push:
  4. branches: [ master ]
  5. paths-ignore:
  6. - '**.md'
  7. pull_request:
  8. branches: [ master ]
  9. paths-ignore:
  10. - '**.md'
  11. jobs:
  12. build_linux:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v3
  16. with:
  17. submodules: 'recursive'
  18. fetch-depth: 0
  19. - name: Install dependencies
  20. run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev
  21. - name: Configure cmake
  22. run: cmake -B build -DCMAKE_BUILD_TYPE=Release
  23. - name: Build and package
  24. run: cmake --build build -j$(nproc) && cmake --build build --target package
  25. - name: Upload TGZ package
  26. uses: actions/upload-artifact@v3
  27. with:
  28. name: TGZ package
  29. path: build/aptdec_*.tar.gz
  30. - name: Upload DEB package
  31. uses: actions/upload-artifact@v3
  32. with:
  33. name: Debian package
  34. path: build/aptdec_*.deb
  35. build_windows:
  36. runs-on: ubuntu-latest
  37. steps:
  38. - uses: actions/checkout@v3
  39. with:
  40. submodules: 'recursive'
  41. fetch-depth: 0
  42. - name: Install dependencies
  43. run: sudo apt install cmake git mingw-w64 unzip
  44. - name: Run build script
  45. run: ./build_windows.sh $BUILD_TYPE
  46. - name: Upload ZIP package
  47. uses: actions/upload-artifact@v3
  48. with:
  49. name: ZIP package
  50. path: winbuild/aptdec_*.zip
  51. build_windows_msvc:
  52. runs-on: windows-latest
  53. steps:
  54. - uses: actions/checkout@v3
  55. with:
  56. submodules: 'recursive'
  57. fetch-depth: 0
  58. - name: Run build script
  59. shell: cmd
  60. run: '"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat" & build_windows.bat'
  61. - name: Upload ZIP package
  62. uses: actions/upload-artifact@v3
  63. with:
  64. name: ZIP package (MSVC)
  65. path: winbuild/aptdec_*.zip
  66. build_linux_armhf:
  67. runs-on: ubuntu-latest
  68. steps:
  69. - uses: actions/checkout@v3
  70. with:
  71. submodules: 'recursive'
  72. fetch-depth: 0
  73. - name: Run build script
  74. run: docker run -v $(pwd):/aptdec:z -w /aptdec debian:11 ./build_arm.sh
  75. - name: Upload DEB package
  76. uses: actions/upload-artifact@v3
  77. with:
  78. name: DEB package (ARM)
  79. path: build/aptdec_*.deb
  80. - name: Upload TGZ package
  81. uses: actions/upload-artifact@v3
  82. with:
  83. name: TGZ package (ARM)
  84. path: build/aptdec_*.tar.gz