Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

build.yml 2.5 KiB

il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 1 an
il y a 2 ans
il y a 1 an
il y a 2 ans
il y a 1 an
il y a 1 an
il y a 2 ans
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
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 archive
  26. uses: actions/upload-artifact@v3
  27. with:
  28. name: TGZ archive (x86_64-gcc)
  29. path: build/aptdec_*.tar.gz
  30. - name: Upload Debian package
  31. uses: actions/upload-artifact@v3
  32. with:
  33. name: Debian package (x86_64-gcc)
  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 archive
  47. uses: actions/upload-artifact@v3
  48. with:
  49. name: ZIP archive (x86_64-MinGW)
  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 archive
  62. uses: actions/upload-artifact@v3
  63. with:
  64. name: ZIP archive (x86_64-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 Debian package
  76. uses: actions/upload-artifact@v3
  77. with:
  78. name: Debian package (armhf-gcc)
  79. path: build/aptdec_*.deb
  80. - name: Upload TGZ archive
  81. uses: actions/upload-artifact@v3
  82. with:
  83. name: TGZ archive (armhf-gcc)
  84. path: build/aptdec_*.tar.gz