release.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: build-release
  2. on:
  3. workflow_dispatch:
  4. release:
  5. types: [prereleased, released]
  6. concurrency:
  7. group: ${{ github.ref }}
  8. cancel-in-progress: true
  9. jobs:
  10. build-mac:
  11. runs-on: macos-14
  12. steps:
  13. - name: Install Free Pascal
  14. uses: doublecmd/lazarus-install@mac
  15. with:
  16. lazarus-version: "stable"
  17. - name: Get Lazarus source
  18. uses: actions/checkout@v4
  19. with:
  20. repository: 'fpc/Lazarus'
  21. ref: 'fixes_4'
  22. - name: Build and install Lazarus
  23. run: |
  24. make all
  25. sudo make install
  26. - name: Create Lazarus config
  27. run: |
  28. sudo mkdir -p /etc/lazarus
  29. sudo cp tools/install/macosx/environmentoptions.xml /etc/lazarus/environmentoptions.xml
  30. sudo sed -i -e "s|_PPCARCH_|fpc|g; s|/Developer/lazarus|/usr/local/share/lazarus|g" /etc/lazarus/environmentoptions.xml
  31. - name: Checkout source
  32. uses: actions/checkout@v4
  33. with:
  34. fetch-depth: 0
  35. - name: Download unrar source code
  36. run: wget https://www.rarlab.com/rar/unrarsrc-7.0.9.tar.gz -O /tmp/unrarsrc.tar.gz
  37. - name: Extract unrar source code
  38. run: cd /tmp && tar xzf unrarsrc.tar.gz
  39. - name: Build packages
  40. run: ./.github/scripts/create_release.sh
  41. - name: Upload binaries to release
  42. uses: svenstaro/upload-release-action@v2
  43. with:
  44. file: doublecmd-release/doublecmd*.dmg
  45. tag: ${{ github.ref }}
  46. overwrite: true
  47. file_glob: true