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.
 
 
 
 
 

90 line
2.0 KiB

  1. name: Build (release)
  2. on:
  3. push:
  4. tags:
  5. - 'v*'
  6. jobs:
  7. create_release:
  8. runs-on: ubuntu-latest
  9. needs: [ build_linux, build_windows ]
  10. steps:
  11. - name: Download TGZ package
  12. uses: actions/download-artifact@v3
  13. with:
  14. name: TGZ package
  15. - name: Download DEB package
  16. uses: actions/download-artifact@v3
  17. with:
  18. name: DEB package
  19. - name: Download ZIP package
  20. uses: actions/download-artifact@v3
  21. with:
  22. name: ZIP package
  23. - name: Test
  24. run: ls -la
  25. - name: Create Release
  26. uses: softprops/action-gh-release@v1
  27. with:
  28. files: |
  29. aptdec_$GITHUB_REF_NAME.x86_64.tar.gz
  30. aptdec_$GITHUB_REF_NAME.x86_64.deb
  31. aptdec_$GITHUB_REF_NAME.amd64.zip
  32. build_linux:
  33. runs-on: ubuntu-latest
  34. steps:
  35. - uses: actions/checkout@v3
  36. with:
  37. submodules: 'recursive'
  38. fetch-depth: 0
  39. - name: Install dependencies
  40. run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev
  41. - name: Configure cmake
  42. run: cmake -B build -DCMAKE_BUILD_TYPE=Release
  43. - name: Build and package
  44. run: cmake --build build -j$(nproc) && cmake --build build --target package
  45. - name: Upload TGZ package
  46. uses: actions/upload-artifact@v3
  47. with:
  48. name: TGZ package
  49. path: build/aptdec_*.tar.gz
  50. - name: Upload DEB package
  51. uses: actions/upload-artifact@v3
  52. with:
  53. name: Debian package
  54. path: build/aptdec_*.deb
  55. build_windows:
  56. runs-on: ubuntu-latest
  57. steps:
  58. - uses: actions/checkout@v3
  59. with:
  60. submodules: 'recursive'
  61. fetch-depth: 0
  62. - name: Install dependencies
  63. run: sudo apt install cmake git mingw-w64 unzip
  64. - name: Run build script
  65. run: ./build_windows.sh $BUILD_TYPE
  66. - name: Upload ZIP package
  67. uses: actions/upload-artifact@v3
  68. with:
  69. name: ZIP package
  70. path: winbuild/aptdec_*.zip