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.
 
 
 
 
 

88 lines
1.9 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. - name: Install dependencies
  39. run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev
  40. - name: Configure cmake
  41. run: cmake -B build -DCMAKE_BUILD_TYPE=Release
  42. - name: Build and package
  43. run: cmake --build build -j$(nproc) && cmake --build build --target package
  44. - name: Upload TGZ package
  45. uses: actions/upload-artifact@v3
  46. with:
  47. name: TGZ package
  48. path: build/aptdec/aptdec_*.tar.gz
  49. - name: Upload DEB package
  50. uses: actions/upload-artifact@v3
  51. with:
  52. name: Debian package
  53. path: build/aptdec/aptdec_*.deb
  54. build_windows:
  55. runs-on: ubuntu-latest
  56. steps:
  57. - uses: actions/checkout@v3
  58. with:
  59. submodules: 'recursive'
  60. - name: Install dependencies
  61. run: sudo apt install cmake git mingw-w64 unzip
  62. - name: Run build script
  63. run: ./build_windows.sh $BUILD_TYPE
  64. - name: Upload ZIP package
  65. uses: actions/upload-artifact@v3
  66. with:
  67. name: ZIP package
  68. path: build/aptdec/aptdec_*.zip