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.
 
 
 
 
 

62 lines
1.3 KiB

  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. - name: Install dependencies
  19. run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev
  20. - name: Configure cmake
  21. run: cmake -B build -DCMAKE_BUILD_TYPE=Release
  22. - name: Build and package
  23. run: cmake --build build -j$(nproc) && cmake --build build --target package
  24. - name: Upload TGZ package
  25. uses: actions/upload-artifact@v3
  26. with:
  27. name: TGZ package
  28. path: build/aptdec/aptdec_*.tar.gz
  29. - name: Upload DEB package
  30. uses: actions/upload-artifact@v3
  31. with:
  32. name: Debian package
  33. path: build/aptdec/aptdec_*.deb
  34. build_windows:
  35. runs-on: ubuntu-latest
  36. steps:
  37. - uses: actions/checkout@v3
  38. with:
  39. submodules: 'recursive'
  40. - name: Install dependencies
  41. run: sudo apt install cmake git mingw-w64 unzip
  42. - name: Run build script
  43. run: ./build_windows.sh $BUILD_TYPE
  44. - name: Upload ZIP package
  45. uses: actions/upload-artifact@v3
  46. with:
  47. name: ZIP package
  48. path: build/aptdec/aptdec_*.zip